Pass the --in-reply-to and --no-thread options to git send-email
authorCatalin Marinas <catalin.marinas@gmail.com>
Fri, 5 Feb 2010 13:45:00 +0000 (13:45 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Fri, 5 Feb 2010 13:45:00 +0000 (13:45 +0000)
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/mail.py

index e479e92..e1de847 100644 (file)
@@ -241,6 +241,10 @@ def __send_message_git(msg, options):
     cmd.append("--suppress-cc=self")
     if not options.auto:
         cmd.append("--suppress-cc=body")
+    if options.in_reply_to:
+        cmd.extend(["--in-reply-to", options.in_reply_to])
+    if options.no_thread:
+        cmd.append("--no-thread")
 
     # We only support To/Cc/Bcc in git send-email for now.
     for x in ['to', 'cc', 'bcc']: