Skip to content

Commit aba201c

Browse files
Pascal Obrygitster
authored andcommitted
Add prefix oriented completions for diff and format-patch commands.
Signed-off-by: Pascal Obry <[email protected]> Acked-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f2b3e3c commit aba201c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,9 @@ _git_diff ()
639639
--find-copies-harder --pickaxe-all --pickaxe-regex
640640
--text --ignore-space-at-eol --ignore-space-change
641641
--ignore-all-space --exit-code --quiet --ext-diff
642-
--no-ext-diff"
642+
--no-ext-diff
643+
--no-prefix --src-prefix= --dst-prefix=
644+
"
643645
return
644646
;;
645647
esac
@@ -696,6 +698,7 @@ _git_format_patch ()
696698
--full-index --binary
697699
--not --all
698700
--cover-letter
701+
--no-prefix --src-prefix= --dst-prefix=
699702
"
700703
return
701704
;;

0 commit comments

Comments
 (0)