We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc13431 + 41e6229 commit fca9249Copy full SHA for fca9249
1 file changed
contrib/completion/git-completion.bash
@@ -676,9 +676,7 @@ __git_complete_revlist_file ()
676
*) pfx="$ref:$pfx" ;;
677
esac
678
679
- local IFS=$'\n'
680
- COMPREPLY=($(compgen -P "$pfx" \
681
- -W "$(git --git-dir="$(__gitdir)" ls-tree "$ls" \
+ __gitcomp_nl "$(git --git-dir="$(__gitdir)" ls-tree "$ls" \
682
| sed '/^100... blob /{
683
s,^.* ,,
684
s,$, ,
@@ -692,7 +690,7 @@ __git_complete_revlist_file ()
692
690
s,$,/,
693
691
}
694
s/^.* //')" \
695
- -- "$cur_"))
+ "$pfx" "$cur_" ""
696
;;
697
*...*)
698
pfx="${cur_%...*}..."
0 commit comments