{"thread":{"id":"19047","subject":"git send-email: How to modify subject prefix?","startedAt":"2009-04-24T15:18:37Z","lastAt":"2009-04-24T15:34:55Z","messageCount":7,"participants":["Constantine Plotnikov","Michael Witten","Shawn O. Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"112197","messageId":"85647ef50904240818s41fffc2eh798083a24ab53750@mail.gmail.com","threadId":"19047","inReplyTo":null,"subject":"git send-email: How to modify subject prefix?","fromName":"Constantine Plotnikov","fromEmail":"constantine.plotnikov@gmail.com","sentAt":"2009-04-24T15:18:37Z","receivedAt":"2009-04-24T15:18:37Z","isPatch":false,"sender":{"key":"constantine.plotnikov@gmail.com","avatar":null},"body":"I'm interested how to modify subject prefix when sending patches using\ngit send-email. I want it to prefix the subject with [JGIT PATCH]\ninstead of [PATCH] and I have not found any option that allows it.\n\nRegards,\nConstantine\n"},{"id":"112199","messageId":"b4087cc50904240820r567020d7gaa7cecaa0f3b78fa@mail.gmail.com","threadId":"19047","inReplyTo":"85647ef50904240818s41fffc2eh798083a24ab53750@mail.gmail.com","subject":"Re: git send-email: How to modify subject prefix?","fromName":"Michael Witten","fromEmail":"mfwitten@gmail.com","sentAt":"2009-04-24T15:20:05Z","receivedAt":"2009-04-24T15:20:05Z","isPatch":false,"sender":{"key":"mfwitten@gmail.com","avatar":"https://avatars.githubusercontent.com/u/597101?v=4"},"body":"On Fri, Apr 24, 2009 at 10:18, Constantine Plotnikov\n<constantine.plotnikov@gmail.com> wrote:\n> I'm interested how to modify subject prefix when sending patches using\n> git send-email. I want it to prefix the subject with [JGIT PATCH]\n> instead of [PATCH] and I have not found any option that allows it.\n\nThe option is format-patch's --subject-prefix\n"},{"id":"112200","messageId":"20090424152227.GY23604@spearce.org","threadId":"19047","inReplyTo":"85647ef50904240818s41fffc2eh798083a24ab53750@mail.gmail.com","subject":"Re: git send-email: How to modify subject prefix?","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-04-24T15:22:27Z","receivedAt":"2009-04-24T15:22:27Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Constantine Plotnikov <constantine.plotnikov@gmail.com> wrote:\n> I'm interested how to modify subject prefix when sending patches using\n> git send-email. I want it to prefix the subject with [JGIT PATCH]\n> instead of [PATCH] and I have not found any option that allows it.\n\nHere's how I send email, the trick is to set the subject on\nformat-patch not on send-email:\n\n_sop/dump.sh\n--8<--\nbase=\"${1:-master}\" &&\nif [ $(git rev-list ^$base HEAD | wc -l) -gt 1 ]\nthen\n\tn=\"--numbered --cover-letter\"\nfi &&\ngit format-patch \\\n\t--output-directory _sop/OUT \\\n\t--subject-prefix='JGIT PATCH' \\\n\t-M \\\n\t$n \\\n\t$base || exit\n----\n\n_sop/send.sh\n--8<--\ngit send-email \\\n\t--to 'Robin Rosenberg <robin.rosenberg@dewire.com>' \\\n\t--cc 'git@vger.kernel.org' \\\n\t--chain-reply-to \\\n\t--suppress-cc self \\\n\t--smtp-server localhost \\\n\t--smtp-server-port 8025 \\\n\t_sop/OUT\n----\n\n-- \nShawn.\n"},{"id":"112202","messageId":"b4087cc50904240823nea4ef2ep20f2060f48395f74@mail.gmail.com","threadId":"19047","inReplyTo":"b4087cc50904240820r567020d7gaa7cecaa0f3b78fa@mail.gmail.com","subject":"Re: git send-email: How to modify subject prefix?","fromName":"Michael Witten","fromEmail":"mfwitten@gmail.com","sentAt":"2009-04-24T15:23:03Z","receivedAt":"2009-04-24T15:23:03Z","isPatch":false,"sender":{"key":"mfwitten@gmail.com","avatar":"https://avatars.githubusercontent.com/u/597101?v=4"},"body":"On Fri, Apr 24, 2009 at 10:20, Michael Witten <mfwitten@gmail.com> wrote:\n> On Fri, Apr 24, 2009 at 10:18, Constantine Plotnikov\n> <constantine.plotnikov@gmail.com> wrote:\n>> I'm interested how to modify subject prefix when sending patches using\n>> git send-email. I want it to prefix the subject with [JGIT PATCH]\n>> instead of [PATCH] and I have not found any option that allows it.\n>\n> The option is format-patch's --subject-prefix\n>\n\nLooking at the source for send-email, it would appear you can do the\nfollowing if you don't want to run format-patch separately:\n\n    git send-email $send_email_args -- $format_patch_args\n\nThat should be documented!\n"},{"id":"112203","messageId":"85647ef50904240828i76cf5f0en14a9fd2dc496a89d@mail.gmail.com","threadId":"19047","inReplyTo":"b4087cc50904240820r567020d7gaa7cecaa0f3b78fa@mail.gmail.com","subject":"Re: git send-email: How to modify subject prefix?","fromName":"Constantine Plotnikov","fromEmail":"constantine.plotnikov@gmail.com","sentAt":"2009-04-24T15:28:55Z","receivedAt":"2009-04-24T15:28:55Z","isPatch":false,"sender":{"key":"constantine.plotnikov@gmail.com","avatar":null},"body":"This option works. Thank you.\n\nBTW why this option is not in the man page? Is it discouraged for use?\n\nOn Fri, Apr 24, 2009 at 7:20 PM, Michael Witten <mfwitten@gmail.com> wrote:\n> On Fri, Apr 24, 2009 at 10:18, Constantine Plotnikov\n> <constantine.plotnikov@gmail.com> wrote:\n>> I'm interested how to modify subject prefix when sending patches using\n>> git send-email. I want it to prefix the subject with [JGIT PATCH]\n>> instead of [PATCH] and I have not found any option that allows it.\n>\n> The option is format-patch's --subject-prefix\n>\n"},{"id":"112205","messageId":"b4087cc50904240832u6d0a17b2gaad406a0176da883@mail.gmail.com","threadId":"19047","inReplyTo":"85647ef50904240828i76cf5f0en14a9fd2dc496a89d@mail.gmail.com","subject":"Re: git send-email: How to modify subject prefix?","fromName":"Michael Witten","fromEmail":"mfwitten@gmail.com","sentAt":"2009-04-24T15:32:44Z","receivedAt":"2009-04-24T15:32:44Z","isPatch":false,"sender":{"key":"mfwitten@gmail.com","avatar":"https://avatars.githubusercontent.com/u/597101?v=4"},"body":"On Fri, Apr 24, 2009 at 10:28, Constantine Plotnikov\n<constantine.plotnikov@gmail.com> wrote:\n> This option works. Thank you.\n>\n> BTW why this option is not in the man page? Is it discouraged for use?\n\nThe option --subject-prefix is documented in format-patch's man page\n(it is an option of format-patch, after all :-D).\n\nHowever, using '--' with send-email to pass along arguments to a call\nto format-patch is not documented in send-email's man page, and it\nshould be.\n"},{"id":"112207","messageId":"b4087cc50904240834q34200ee1qd9081b8c4480c83a@mail.gmail.com","threadId":"19047","inReplyTo":"b4087cc50904240832u6d0a17b2gaad406a0176da883@mail.gmail.com","subject":"Re: git send-email: How to modify subject prefix?","fromName":"Michael Witten","fromEmail":"mfwitten@gmail.com","sentAt":"2009-04-24T15:34:55Z","receivedAt":"2009-04-24T15:34:55Z","isPatch":false,"sender":{"key":"mfwitten@gmail.com","avatar":"https://avatars.githubusercontent.com/u/597101?v=4"},"body":"On Fri, Apr 24, 2009 at 10:32, Michael Witten <mfwitten@gmail.com> wrote:\n> The option --subject-prefix is documented in format-patch's man page\n> (it is an option of format-patch, after all :-D).\n>\n> However, using '--' with send-email to pass along arguments to a call\n> to format-patch is not documented in send-email's man page, and it\n> should be.\n\nI should add that I don't really like it though; it seems that it\nmakes the relationship to format-patch a little to close and implicit.\nI would think that --format-patch-args would be better.\n"}]}