# [PATCH 1/3] completion: add --annotate option to send-email

5 messages from 2009-03-23 to 2009-03-23. Participants: Stephen Boyd, Shawn O. Pearce.
Thread: https://gitlist.dev/t/18484

## Stephen Boyd, 2009-03-23 10:26

Subject: [PATCH 0/3] completion updates
Message-ID: <1237804011-15419-1-git-send-email-bebarino@gmail.com>
URL: https://gitlist.dev/e/1237804011-15419-1-git-send-email-bebarino%40gmail.com

```
Stephen Boyd (3):
  completion: add --annotate option to send-email
  completion: add --cc and --no-attachment option to format-patch
  completion: add --thread=deep/shallow to format-patch

 contrib/completion/git-completion.bash |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

```

## Stephen Boyd, 2009-03-23 10:26

Subject: [PATCH 1/3] completion: add --annotate option to send-email
Message-ID: <1237804011-15419-2-git-send-email-bebarino@gmail.com>
URL: https://gitlist.dev/e/1237804011-15419-2-git-send-email-bebarino%40gmail.com
In-Reply-To: <1237804011-15419-1-git-send-email-bebarino@gmail.com>

```
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---
 contrib/completion/git-completion.bash |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 10e36a7..8719242 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1264,8 +1264,8 @@ _git_send_email ()
 	local cur="${COMP_WORDS[COMP_CWORD]}"
 	case "$cur" in
 	--*)
-		__gitcomp "--bcc --cc --cc-cmd --chain-reply-to --compose
-			--dry-run --envelope-sender --from --identity
+		__gitcomp "--annotate --bcc --cc --cc-cmd --chain-reply-to
+			--compose --dry-run --envelope-sender --from --identity
 			--in-reply-to --no-chain-reply-to --no-signed-off-by-cc
 			--no-suppress-from --no-thread --quiet
 			--signed-off-by-cc --smtp-pass --smtp-server
-- 
1.6.2

```

## Stephen Boyd, 2009-03-23 10:26

Subject: [PATCH 2/3] completion: add --cc and --no-attachment option to format-patch
Message-ID: <1237804011-15419-3-git-send-email-bebarino@gmail.com>
URL: https://gitlist.dev/e/1237804011-15419-3-git-send-email-bebarino%40gmail.com
In-Reply-To: <1237804011-15419-2-git-send-email-bebarino@gmail.com>

```
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---
 contrib/completion/git-completion.bash |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8719242..b96458f 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -932,13 +932,13 @@ _git_format_patch ()
 	case "$cur" in
 	--*)
 		__gitcomp "
-			--stdout --attach --thread
+			--stdout --attach --no-attach --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
-- 
1.6.2

```

## Stephen Boyd, 2009-03-23 10:26

Subject: [PATCH 3/3] completion: add --thread=deep/shallow to format-patch
Message-ID: <1237804011-15419-4-git-send-email-bebarino@gmail.com>
URL: https://gitlist.dev/e/1237804011-15419-4-git-send-email-bebarino%40gmail.com
In-Reply-To: <1237804011-15419-3-git-send-email-bebarino@gmail.com>

```
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
---
 contrib/completion/git-completion.bash |    8 +++++++-
 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
-- 
1.6.2

```

## Shawn O. Pearce, 2009-03-23 14:11

Subject: Re: [PATCH 3/3] completion: add --thread=deep/shallow to format-patch
Message-ID: <20090323141137.GD9732@spearce.org>
URL: https://gitlist.dev/e/20090323141137.GD9732%40spearce.org
In-Reply-To: <1237804011-15419-4-git-send-email-bebarino@gmail.com>

```
Stephen Boyd <bebarino@gmail.com> wrote:
> Signed-off-by: Stephen Boyd <bebarino@gmail.com>

All three patches...

Trivially-Acked-By: Shawn O. Pearce <spearce@spearce.org>

>  contrib/completion/git-completion.bash |    8 +++++++-
>  1 files changed, 7 insertions(+), 1 deletions(-)

-- 
Shawn.

```
