Code

completion: add more 'git add' options
authorSZEDER Gábor <szeder@ira.uka.de>
Sat, 14 Jun 2008 09:48:01 +0000 (11:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 14 Jun 2008 19:47:44 +0000 (12:47 -0700)
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 16984632d984006e2f2867a26714086bf3045ca3..2141b6b6ba4cfed2c2ea3beca1e1149d489b75fa 100755 (executable)
@@ -500,7 +500,10 @@ _git_add ()
        local cur="${COMP_WORDS[COMP_CWORD]}"
        case "$cur" in
        --*)
-               __gitcomp "--interactive --refresh"
+               __gitcomp "
+                       --interactive --refresh --patch --update --dry-run
+                       --ignore-errors
+                       "
                return
        esac
        COMPREPLY=()