{"thread":{"id":"19057","subject":"[PATCH] bash completion: show-branch color support","startedAt":"2009-04-25T11:46:14Z","lastAt":"2009-04-25T11:46:14Z","messageCount":1,"participants":["Markus Heidelberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"112295","messageId":"1240659974-12161-1-git-send-email-markus.heidelberg@web.de","threadId":"19057","inReplyTo":null,"subject":"[PATCH] bash completion: show-branch color support","fromName":"Markus Heidelberg","fromEmail":"markus.heidelberg@web.de","sentAt":"2009-04-25T11:46:14Z","receivedAt":"2009-04-25T11:46:14Z","isPatch":true,"sender":{"key":"markus.heidelberg@web.de","avatar":"https://avatars.githubusercontent.com/u/6334512?v=4"},"body":"This implements completion of --color and --no-color for \"git\nshow-branch\" and color.showbranch for \"git config\".\n\nSigned-off-by: Markus Heidelberg <markus.heidelberg@web.de>\n---\n\n   This goes on top of mh/show-branch-color which is currently in pu.\n\n contrib/completion/git-completion.bash |    5 ++++-\n 1 files changed, 4 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash\nindex 1a90cb8..b588387 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -1333,7 +1333,8 @@ _git_config ()\n \t\t__gitcomp \"$(__git_merge_strategies)\"\n \t\treturn\n \t\t;;\n-\tcolor.branch|color.diff|color.interactive|color.status|color.ui)\n+\tcolor.branch|color.diff|color.interactive|\\\n+\tcolor.showbranch|color.status|color.ui)\n \t\t__gitcomp \"always never auto\"\n \t\treturn\n \t\t;;\n@@ -1415,6 +1416,7 @@ _git_config ()\n \t\tcolor.interactive.help\n \t\tcolor.interactive.prompt\n \t\tcolor.pager\n+\t\tcolor.showbranch\n \t\tcolor.status\n \t\tcolor.status.added\n \t\tcolor.status.changed\n@@ -1676,6 +1678,7 @@ _git_show_branch ()\n \t\t__gitcomp \"\n \t\t\t--all --remotes --topo-order --current --more=\n \t\t\t--list --independent --merge-base --no-name\n+\t\t\t--color --no-color\n \t\t\t--sha1-name --topics --reflog\n \t\t\t\"\n \t\treturn\n-- \n1.6.3.rc1.84.g1036b\n"}]}