git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Thomas Rast <trast@student.ethz.ch>
Date
Mar 11, 2009, 22:40 UTC
Message-ID
<356f6d0e8e2d6f7da3ef59f460fd34724ebbc6fd.1236811120.git.trast@student.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
Previous: Thomas Rast
Message 2 of 2 in “Re: What's cooking in git.git (Mar 2009, #03; Wed, 11)”
  1. Thomas RastMar 11, 2009
  2. send-email: test --no-thread --in-reply-to combinationThomas Rast, Mar 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.