# [PATCH] send-email: test --no-thread --in-reply-to combination

2 messages from 2009-03-11 to 2009-03-11. Participants: Thomas Rast.
Thread: https://gitlist.dev/t/18272

## Thomas Rast, 2009-03-11 22:37

Subject: Re: What's cooking in git.git (Mar 2009, #03; Wed, 11)
Message-ID: <200903112337.36799.trast@student.ethz.ch>
URL: https://gitlist.dev/e/200903112337.36799.trast%40student.ethz.ch
In-Reply-To: <7vvdqg5s17.fsf@gitster.siamese.dyndns.org>

```
Junio C Hamano wrote:
> * tr/gcov (Thu Feb 19 12:13:42 2009 +0100) 8 commits
>  + Test git-patch-id
>  + Test rev-list --parents/--children
>  + Test log --decorate
>  + Test fsck a bit harder
>  + Test log --graph
>  + Test diff --dirstat functionality
>  + Test that diff can read from stdin
>  + Support coverage testing with GCC/gcov
> 
> * tr/maint-1.6.0-send-email-irt (Sun Mar 1 23:45:41 2009 +0100) 1 commit
>  + send-email: respect in-reply-to regardless of threading
> 
> Tests?

I see you got tired of waiting while I was out drowning in work, so:
thanks, especially for fixing up the fsck test!

I'll follow up with a test for the latter topic shortly.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

```

## Thomas Rast, 2009-03-11 22:40

Subject: [PATCH] send-email: test --no-thread --in-reply-to combination
Message-ID: <356f6d0e8e2d6f7da3ef59f460fd34724ebbc6fd.1236811120.git.trast@student.ethz.ch>
URL: https://gitlist.dev/e/356f6d0e8e2d6f7da3ef59f460fd34724ebbc6fd.1236811120.git.trast%40student.ethz.ch
In-Reply-To: <200903112337.36799.trast@student.ethz.ch>

```
3e0c4ff (send-email: respect in-reply-to regardless of threading,
2009-03-01) fixed the handling of the In-Reply-To header when both
--no-thread and --in-reply-to are in effect.  Add a test for it.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
---
 t/t9001-send-email.sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index 08d5b91..a46f747 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -531,4 +531,15 @@ test_expect_success 'feed two files' '
 	test "z$(sed -n -e 2p subjects)" = "zSubject: [PATCH 2/2] add master"
 '
 
+test_expect_success 'in-reply-to but no threading' '
+	git send-email \
+		--dry-run \
+		--from="Example <nobody@example.com>" \
+		--to=nobody@example.com \
+		--in-reply-to="<in-reply-id@example.com>" \
+		--no-thread \
+		$patches |
+	grep "In-Reply-To: <in-reply-id@example.com>"
+'
+
 test_done
-- 
1.6.2.489.g51f6b7

```
