We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a8c84 commit 3bf421eCopy full SHA for 3bf421e
contrib/completion/git-completion.bash
@@ -304,16 +304,16 @@ __git_ps1 ()
304
fi
305
}
306
307
-# __gitcomp_1 requires 2 arguments
308
__gitcomp_1 ()
309
{
310
- local c IFS=' '$'\t'$'\n'
+ local c IFS=$' \t\n'
311
for c in $1; do
312
- case "$c$2" in
313
- --*=*) printf %s$'\n' "$c$2" ;;
314
- *.) printf %s$'\n' "$c$2" ;;
315
- *) printf %s$'\n' "$c$2 " ;;
+ c="$c$2"
+ case $c in
+ --*=*|*.) ;;
+ *) c="$c " ;;
316
esac
+ printf '%s\n' "$c"
317
done
318
319
0 commit comments