Code

contrib/completion: --no-index option to git diff
authorMichael J Gruber <git@drmicha.warpmail.net>
Thu, 23 Sep 2010 12:33:51 +0000 (14:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Sep 2010 17:52:49 +0000 (10:52 -0700)
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 67569901e71e5062199e48304afc424f15b57ba1..f83f019ca91a2611f5bd3474ccf6d10081320c4c 100755 (executable)
@@ -1125,7 +1125,7 @@ _git_diff ()
        case "$cur" in
        --*)
                __gitcomp "--cached --staged --pickaxe-all --pickaxe-regex
-                       --base --ours --theirs
+                       --base --ours --theirs --no-index
                        $__git_diff_common_options
                        "
                return