@@ -1116,6 +1116,14 @@ _git_fetch ()
1116
1116
__git_complete_remote_or_refspec
1117
1117
}
1118
1118
1119
+ __git_format_patch_options="
1120
+ --stdout --attach --no-attach --thread --thread= --output-directory
1121
+ --numbered --start-number --numbered-files --keep-subject --signoff
1122
+ --signature --no-signature --in-reply-to= --cc= --full-index --binary
1123
+ --not --all --cover-letter --no-prefix --src-prefix= --dst-prefix=
1124
+ --inline --suffix= --ignore-if-in-upstream --subject-prefix=
1125
+ "
1126
+
1119
1127
_git_format_patch ()
1120
1128
{
1121
1129
case " $cur " in
@@ -1126,21 +1134,7 @@ _git_format_patch ()
1126
1134
return
1127
1135
;;
1128
1136
--* )
1129
- __gitcomp "
1130
- --stdout --attach --no-attach --thread --thread=
1131
- --output-directory
1132
- --numbered --start-number
1133
- --numbered-files
1134
- --keep-subject
1135
- --signoff --signature --no-signature
1136
- --in-reply-to= --cc=
1137
- --full-index --binary
1138
- --not --all
1139
- --cover-letter
1140
- --no-prefix --src-prefix= --dst-prefix=
1141
- --inline --suffix= --ignore-if-in-upstream
1142
- --subject-prefix=
1143
- "
1137
+ __gitcomp " $__git_format_patch_options "
1144
1138
return
1145
1139
;;
1146
1140
esac
@@ -1554,6 +1548,12 @@ _git_send_email ()
1554
1548
__gitcomp " ssl tls" " " " ${cur## --smtp-encryption=} "
1555
1549
return
1556
1550
;;
1551
+ --thread=* )
1552
+ __gitcomp "
1553
+ deep shallow
1554
+ " " " " ${cur## --thread=} "
1555
+ return
1556
+ ;;
1557
1557
--* )
1558
1558
__gitcomp " --annotate --bcc --cc --cc-cmd --chain-reply-to
1559
1559
--compose --confirm= --dry-run --envelope-sender
@@ -1563,11 +1563,12 @@ _git_send_email ()
1563
1563
--signed-off-by-cc --smtp-pass --smtp-server
1564
1564
--smtp-server-port --smtp-encryption= --smtp-user
1565
1565
--subject --suppress-cc= --suppress-from --thread --to
1566
- --validate --no-validate"
1566
+ --validate --no-validate
1567
+ $__git_format_patch_options "
1567
1568
return
1568
1569
;;
1569
1570
esac
1570
- COMPREPLY=()
1571
+ __git_complete_revlist
1571
1572
}
1572
1573
1573
1574
_git_stage ()
0 commit comments