git/completion-wordbreaks.diff

20 lines
640 B
Diff
Raw Normal View History

--- a/contrib/completion/git-completion.bash~ 2010-06-01 03:09:24.371191000 +0200
+++ b/contrib/completion/git-completion.bash 2010-06-01 03:09:25.180182000 +0200
@@ -54,10 +54,12 @@
# git@vger.kernel.org
#
-case "$COMP_WORDBREAKS" in
-*:*) : great ;;
-*) COMP_WORDBREAKS="$COMP_WORDBREAKS:"
-esac
+# SUSE-specific: We trust the system is consistent and do not let individual
+# scripts play ping-pong with the global $COMP_WORDBREAKS value.
+#case "$COMP_WORDBREAKS" in
+#*:*) : great ;;
+#*) COMP_WORDBREAKS="$COMP_WORDBREAKS:"
+#esac
# __gitdir accepts 0 or 1 arguments (i.e., location)
# returns location of .git repo