summaryrefslogtreecommitdiff
path: root/t/t5100-mailinfo.sh
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2014-11-25 14:00:55 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-11-25 23:24:55 (GMT)
commit452dfbed1a80754bfdc52567d9d9dba08a7d0a6d (patch)
tree8b5721349d426b698699aea091f7fcca532a89eb /t/t5100-mailinfo.sh
parent652e759330da379a8e09e03bbf99e03c10c228cc (diff)
downloadgit-452dfbed1a80754bfdc52567d9d9dba08a7d0a6d.zip
git-452dfbed1a80754bfdc52567d9d9dba08a7d0a6d.tar.gz
git-452dfbed1a80754bfdc52567d9d9dba08a7d0a6d.tar.bz2
git-mailinfo: add --message-id
This option adds the content of the Message-Id header at the end of the commit message prepared by git-mailinfo. This is useful in order to associate commit messages automatically with mailing list discussions. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100-mailinfo.sh')
-rwxr-xr-xt/t5100-mailinfo.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t5100-mailinfo.sh b/t/t5100-mailinfo.sh
index 9e1ad1c..60df10f 100755
--- a/t/t5100-mailinfo.sh
+++ b/t/t5100-mailinfo.sh
@@ -35,6 +35,10 @@ do
then
check_mailinfo $mail --no-inbody-headers
fi
+ if test -f "$TEST_DIRECTORY"/t5100/msg$mail--message-id
+ then
+ check_mailinfo $mail --message-id
+ fi
'
done