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 <markus.heidelberg@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Markus Heidelberg committed
Apr 25, 2009 at 13:46 UTC
6123d7196fdd9ac9aed24b4aeed854813fe9a6b1
1 file changed
+4
-1
contrib/completion/git-completion.bash
+4
-1
@@ -1333,7 +1333,8 @@ _git_config ()
1333
__gitcomp "$(__git_merge_strategies)"
1334
return
1335
;;
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)
1338
__gitcomp "always never auto"
1339
return
1340
;;
@@ -1415,6 +1416,7 @@ _git_config ()
1416
color.interactive.help
1417
color.interactive.prompt
1418
color.pager
1419
+ color.showbranch
1420
color.status
1421
color.status.added
1422
color.status.changed
@@ -1676,6 +1678,7 @@ _git_show_branch ()
1678
__gitcomp "
1679
--all --remotes --topo-order --current --more=
1680
--list --independent --merge-base --no-name
1681
+ --color --no-color
1682
--sha1-name --topics --reflog
1683
"
1684
return