Skip to content

Commit

Permalink
bash: add git-branch options
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SZEDER Gábor authored and Junio C Hamano committed Mar 5, 2008
1 parent 79b1138 commit 3b376b0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 3b376b0

Please sign in to comment.