summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-03-23 10:26:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-25 02:17:33 (GMT)
commite1d37937ac3c15898afdb6117349a30d0eae5e64 (patch)
treefc823d98760ad7616f28f353d8c6dec4f668fe0a /contrib
parent3f7df3a71a9cbab3c27d84f2410e7d39407f9013 (diff)
downloadgit-e1d37937ac3c15898afdb6117349a30d0eae5e64.zip
git-e1d37937ac3c15898afdb6117349a30d0eae5e64.tar.gz
git-e1d37937ac3c15898afdb6117349a30d0eae5e64.tar.bz2
completion: add --thread=deep/shallow to format-patch
Signed-off-by: Stephen Boyd <bebarino@gmail.com> Trivially-Acked-By: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index b96458f..1c6b0e2 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -930,9 +930,15 @@ _git_format_patch ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
+ --thread=*)
+ __gitcomp "
+ deep shallow
+ " "" "${cur##--thread=}"
+ return
+ ;;
--*)
__gitcomp "
- --stdout --attach --no-attach --thread
+ --stdout --attach --no-attach --thread --thread=
--output-directory
--numbered --start-number
--numbered-files