Browse Source

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>
maint
SZEDER Gábor 17 years ago committed by Junio C Hamano
parent
commit
3b376b0cb8
  1. 11
      contrib/completion/git-completion.bash

11
contrib/completion/git-completion.bash

@ -506,7 +506,16 @@ _git_bisect () @@ -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 ()

Loading…
Cancel
Save