send-email: refactor and ensure prompting doesn't loop forever
[gitweb.git] / contrib / completion / git-completion.bash
index 87192424984a1fd479280735485391bc9b978365..1c6b0e28eff43caea4d7078d18d196c6d36fbbd4 100755 (executable)
@@ -930,15 +930,21 @@ _git_format_patch ()
 {
        local cur="${COMP_WORDS[COMP_CWORD]}"
        case "$cur" in
+       --thread=*)
+               __gitcomp "
+                       deep shallow
+                       " "" "${cur##--thread=}"
+               return
+               ;;
        --*)
                __gitcomp "
-                       --stdout --attach --thread
+                       --stdout --attach --no-attach --thread --thread=
                        --output-directory
                        --numbered --start-number
                        --numbered-files
                        --keep-subject
                        --signoff
-                       --in-reply-to=
+                       --in-reply-to= --cc=
                        --full-index --binary
                        --not --all
                        --cover-letter