Git development
 help / color / mirror / Atom feed
From: "Karl  Hasselström" <kha@treskal.com>
To: Catalin Marinas <catalin.marinas@arm.com>
Cc: git@vger.kernel.org
Subject: [PATCH] Use --refid option even when sending a cover mail
Date: Fri, 17 Feb 2006 03:07:27 +0100	[thread overview]
Message-ID: <20060217020727.12978.2049.stgit@backpacker.hemma.treskal.com> (raw)

StGIT used to just ignore the --refid option when sending a cover
mail. With this patch, it will send the cover mail as a reply to the
mail identified by the refid, and the patch emails as replies to the
cover mail as usual.

Signed-off-by: Karl Hasselström <kha@treskal.com>

---

 stgit/commands/mail.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py
index b3b7b49..975f8c9 100644
--- a/stgit/commands/mail.py
+++ b/stgit/commands/mail.py
@@ -199,6 +199,9 @@ def __build_cover(tmpl, total_nr, msg_id
 
     headers_end = __build_address_headers(options)
     headers_end += 'Message-Id: %s\n' % msg_id
+    if options.refid:
+        headers_end += "In-Reply-To: %s\n" % options.refid
+        headers_end += "References: %s\n" % options.refid
 
     if options.version:
         version_str = ' %s' % options.version

                 reply	other threads:[~2006-02-17  2:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060217020727.12978.2049.stgit@backpacker.hemma.treskal.com \
    --to=kha@treskal.com \
    --cc=catalin.marinas@arm.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox