Skip to content

Commit 6123d71

Browse files
marcowsgitster
authored andcommitted
bash completion: show-branch color support
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]>
1 parent ab07ba2 commit 6123d71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1333,7 +1333,8 @@ _git_config ()
13331333
__gitcomp "$(__git_merge_strategies)"
13341334
return
13351335
;;
1336-
color.branch|color.diff|color.interactive|color.status|color.ui)
1336+
color.branch|color.diff|color.interactive|\
1337+
color.showbranch|color.status|color.ui)
13371338
__gitcomp "always never auto"
13381339
return
13391340
;;
@@ -1415,6 +1416,7 @@ _git_config ()
14151416
color.interactive.help
14161417
color.interactive.prompt
14171418
color.pager
1419+
color.showbranch
14181420
color.status
14191421
color.status.added
14201422
color.status.changed
@@ -1676,6 +1678,7 @@ _git_show_branch ()
16761678
__gitcomp "
16771679
--all --remotes --topo-order --current --more=
16781680
--list --independent --merge-base --no-name
1681+
--color --no-color
16791682
--sha1-name --topics --reflog
16801683
"
16811684
return

0 commit comments

Comments
 (0)