Skip to content

Commit

Permalink
bash completion: show-branch color support
Browse files Browse the repository at this point in the history
This implements completion of --color and --no-color for "git
show-branch" and color.showbranch for "git config".

Signed-off-by: Markus Heidelberg <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
marcows authored and gitster committed Apr 25, 2009
1 parent ab07ba2 commit 6123d71
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1333,7 +1333,8 @@ _git_config ()
__gitcomp "$(__git_merge_strategies)"
return
;;
color.branch|color.diff|color.interactive|color.status|color.ui)
color.branch|color.diff|color.interactive|\
color.showbranch|color.status|color.ui)
__gitcomp "always never auto"
return
;;
Expand Down Expand Up @@ -1415,6 +1416,7 @@ _git_config ()
color.interactive.help
color.interactive.prompt
color.pager
color.showbranch
color.status
color.status.added
color.status.changed
Expand Down Expand Up @@ -1676,6 +1678,7 @@ _git_show_branch ()
__gitcomp "
--all --remotes --topo-order --current --more=
--list --independent --merge-base --no-name
--color --no-color
--sha1-name --topics --reflog
"
return
Expand Down

0 comments on commit 6123d71

Please sign in to comment.