Code

Merge branch 'tr/maint-1.6.0-send-email-irt' into maint
authorJunio C Hamano <gitster@pobox.com>
Sun, 22 Mar 2009 06:09:21 +0000 (23:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Mar 2009 06:09:21 +0000 (23:09 -0700)
* tr/maint-1.6.0-send-email-irt:
  send-email: test --no-thread --in-reply-to combination
  send-email: respect in-reply-to regardless of threading

Conflicts:
t/t9001-send-email.sh

1  2 
git-send-email.perl
t/t9001-send-email.sh

Simple merge
index 4df4f965cb0f2220ea9acf769c4fabf1248ab9a1,a404204b176670ef6e6f0692bdf0ffeb71f23b75..d7634187aaa82578dbabbccd6866319b40356854
@@@ -434,25 -292,15 +434,36 @@@ test_expect_success '--compose adds MIM
        grep "^Subject: =?utf-8?q?utf8-s=C3=BCbj=C3=ABct?=" msgtxt1
  '
  
 +test_expect_success 'detects ambiguous reference/file conflict' '
 +      echo master > master &&
 +      git add master &&
 +      git commit -m"add master" &&
 +      test_must_fail git send-email --dry-run master 2>errors &&
 +      grep disambiguate errors
 +'
 +
 +test_expect_success 'feed two files' '
 +      rm -fr outdir &&
 +      git format-patch -2 -o outdir &&
 +      GIT_SEND_EMAIL_NOTTY=1 git send-email \
 +      --dry-run \
 +      --from="Example <nobody@example.com>" \
 +      --to=nobody@example.com \
 +      outdir/000?-*.patch 2>errors >out &&
 +      grep "^Subject: " out >subjects &&
 +      test "z$(sed -n -e 1p subjects)" = "zSubject: [PATCH 1/2] Second." &&
 +      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