git/git-bash-completion-egrep-color-fix.diff

18 lines
545 B
Diff
Raw Normal View History

---
contrib/completion/git-completion.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: git-2.11.0/contrib/completion/git-completion.bash
===================================================================
--- git-2.11.0.orig/contrib/completion/git-completion.bash
+++ git-2.11.0/contrib/completion/git-completion.bash
@@ -627,7 +627,7 @@ __git_commands () {
then
printf "%s" "${GIT_TESTING_COMMAND_COMPLETION}"
else
- git help -a|egrep '^ [a-zA-Z0-9]'
+ git help -a|egrep --color=never '^ [a-zA-Z0-9]'
fi
}