Skip to content

Commit 9ffcf75

Browse files
committed
Merge branch 'nd/completion-negation'
The command line completion machinery (in contrib/) has been updated to allow the completion script to tweak the list of options that are reported by the parse-options machinery correctly. * nd/completion-negation: completion: fix __gitcomp_builtin no longer consider extra options
2 parents 3df27e0 + 276b49f commit 9ffcf75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ __gitcomp_builtin ()
400400
if [ -z "$options" ]; then
401401
# leading and trailing spaces are significant to make
402402
# option removal work correctly.
403-
options=" $(__git ${cmd/_/ } --git-completion-helper) $incl "
403+
options=" $incl $(__git ${cmd/_/ } --git-completion-helper) "
404404
for i in $excl; do
405405
options="${options/ $i / }"
406406
done

0 commit comments

Comments
 (0)