summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder@ira.uka.de>2008-03-04 18:00:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-05 20:10:29 (GMT)
commit3b376b0cb8b5d6b7b0d3f3acff6a31f350a7ab04 (patch)
tree0709c3707083ece32e5a8589e107c3b88c4858b1
parent79b1138e7894ea048008f6b99908f5cd36e94949 (diff)
downloadgit-3b376b0cb8b5d6b7b0d3f3acff6a31f350a7ab04.zip
git-3b376b0cb8b5d6b7b0d3f3acff6a31f350a7ab04.tar.gz
git-3b376b0cb8b5d6b7b0d3f3acff6a31f350a7ab04.tar.bz2
bash: add git-branch options
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xcontrib/completion/git-completion.bash11
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8f70e1e..8d6733a 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -506,7 +506,16 @@ _git_bisect ()
_git_branch ()
{
- __gitcomp "$(__git_refs)"
+ case "${COMP_WORDS[COMP_CWORD]}" in
+ --*=*) COMPREPLY=() ;;
+ --*)
+ __gitcomp "
+ --color --no-color --verbose --abbrev= --no-abbrev
+ --track --no-track
+ "
+ ;;
+ *) __gitcomp "$(__git_refs)" ;;
+ esac
}
_git_bundle ()