diff options
author | Sean <seanlkml@sympatico.ca> | 2006-05-13 21:43:00 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-14 16:21:02 -0700 |
commit | a62be77f5ebdbbd46d6956dc4d07571835588389 (patch) | |
tree | 7865bc748d628ae786951067568281fc5b7158dd /Documentation/git-rev-parse.txt | |
parent | 975bf9cf5ad5d440f98f464ae8124609a4835ce1 (diff) | |
download | git-a62be77f5ebdbbd46d6956dc4d07571835588389.tar.gz |
Add "--branches", "--tags" and "--remotes" options to git-rev-parse.
"git branch" uses "rev-parse --all" and becomes much too slow when
there are many tags (it scans all refs). Use the new "--branches"
option of rev-parse to speed things up.
Signed-off-by: Sean Estabrooks <seanlkml@sympatico.ca>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-rev-parse.txt')
-rw-r--r-- | Documentation/git-rev-parse.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt index 8b95df0c6e..ab896fcf83 100644 --- a/Documentation/git-rev-parse.txt +++ b/Documentation/git-rev-parse.txt @@ -67,6 +67,15 @@ OPTIONS --all:: Show all refs found in `$GIT_DIR/refs`. +--branches:: + Show branch refs found in `$GIT_DIR/refs/heads`. + +--tags:: + Show tag refs found in `$GIT_DIR/refs/tags`. + +--remotes:: + Show tag refs found in `$GIT_DIR/refs/remotes`. + --show-prefix:: When the command is invoked from a subdirectory, show the path of the current directory relative to the top-level |