Code

Add prefix oriented completions for diff and format-patch commands.
authorPascal Obry <pascal.obry@gmail.com>
Sun, 6 Apr 2008 16:56:08 +0000 (18:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2008 03:03:09 +0000 (20:03 -0700)
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>
contrib/completion/git-completion.bash

index 96a712b5ea24f83cebf7f7e465168bdce5db6673..4d81963b1d00b1b4e874330a9e5933111f491def 100755 (executable)
@@ -639,7 +639,9 @@ _git_diff ()
                        --find-copies-harder --pickaxe-all --pickaxe-regex
                        --text --ignore-space-at-eol --ignore-space-change
                        --ignore-all-space --exit-code --quiet --ext-diff
-                       --no-ext-diff"
+                       --no-ext-diff
+                       --no-prefix --src-prefix= --dst-prefix=
+                       "
                return
                ;;
        esac
@@ -696,6 +698,7 @@ _git_format_patch ()
                        --full-index --binary
                        --not --all
                        --cover-letter
+                       --no-prefix --src-prefix= --dst-prefix=
                        "
                return
                ;;