@matheusbsbs / matheus-bagliano / commits / aba201c6e8
Fork 0

Add prefix oriented completions for diff and format-patch commands.

Signed-off-by: Pascal Obry <pascal@obry.net> Acked-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Pascal Obry committed Apr 6, 2008 at 18:56 UTC aba201c6e8d9934157b9ba39b8e6b54c2fa7b6e1
1 file changed +4 -1
contrib/completion/git-completion.bash
+4 -1
@@ -639,7 +639,9 @@ _git_diff ()
639 --find-copies-harder --pickaxe-all --pickaxe-regex
640 --text --ignore-space-at-eol --ignore-space-change
641 --ignore-all-space --exit-code --quiet --ext-diff
642 - --no-ext-diff"
642 + --no-ext-diff
643 + --no-prefix --src-prefix= --dst-prefix=
644 + "
645 return
646 ;;
647 esac
@@ -696,6 +698,7 @@ _git_format_patch ()
698 --full-index --binary
699 --not --all
700 --cover-letter
701 + --no-prefix --src-prefix= --dst-prefix=
702 "
703 return
704 ;;