зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
ab07ba2a24
Коммит
6123d7196f
|
@ -1333,7 +1333,8 @@ _git_config ()
|
||||||
__gitcomp "$(__git_merge_strategies)"
|
__gitcomp "$(__git_merge_strategies)"
|
||||||
return
|
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"
|
__gitcomp "always never auto"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
|
@ -1415,6 +1416,7 @@ _git_config ()
|
||||||
color.interactive.help
|
color.interactive.help
|
||||||
color.interactive.prompt
|
color.interactive.prompt
|
||||||
color.pager
|
color.pager
|
||||||
|
color.showbranch
|
||||||
color.status
|
color.status
|
||||||
color.status.added
|
color.status.added
|
||||||
color.status.changed
|
color.status.changed
|
||||||
|
@ -1676,6 +1678,7 @@ _git_show_branch ()
|
||||||
__gitcomp "
|
__gitcomp "
|
||||||
--all --remotes --topo-order --current --more=
|
--all --remotes --topo-order --current --more=
|
||||||
--list --independent --merge-base --no-name
|
--list --independent --merge-base --no-name
|
||||||
|
--color --no-color
|
||||||
--sha1-name --topics --reflog
|
--sha1-name --topics --reflog
|
||||||
"
|
"
|
||||||
return
|
return
|
||||||
|
|
Загрузка…
Ссылка в новой задаче