{"thread":{"id":"43410","subject":"Re: How to prepend data when formatting patches ?","startedAt":"2006-11-30T14:16:22Z","lastAt":"2006-11-30T16:19:42Z","messageCount":5,"participants":["Francis Moreau","Johannes Schindelin","Catalin Marinas"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"296300","messageId":"38b2ab8a0611300616j54a9f8ase9b4f1c305b7c22b@mail.gmail.com","threadId":"43410","inReplyTo":null,"subject":"How to prepend data when formatting patches ?","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2006-11-30T14:16:22Z","receivedAt":"2006-11-30T14:16:22Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"Hi\n\nI'd like to add to all patchs created by \"git-format-patch\" command\nthe following line:\n\n        From: xxx.yyy <foo@crazy.com>\n\nI took a look to the command options and git's hooks but I don't find\na solution to this problem.\n\nIs there any tricks to do this ?\n\nthanks\n-- \n"},{"id":"294701","messageId":"Pine.LNX.4.63.0611301638430.30004@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"43410","inReplyTo":"38b2ab8a0611300616j54a9f8ase9b4f1c305b7c22b@mail.gmail.com","subject":"Re: How to prepend data when formatting patches ?","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2006-11-30T15:39:22Z","receivedAt":"2006-11-30T15:39:22Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 30 Nov 2006, Francis Moreau wrote:\n\n> I'd like to add to all patchs created by \"git-format-patch\" command\n> the following line:\n> \n>        From: xxx.yyy <foo@crazy.com>\n\nFrom Documentation/git-format-patch.txt:\n\n-- snip --\n\nCONFIGURATION\n-------------\nYou can specify extra mail header lines to be added to each\nmessage in the repository configuration as follows:\n\n[format]\n        headers = \"Organization: git-foo\\n\"\n\n-- snap --\n\nHth,\nDscho\n"},{"id":"296636","messageId":"tnx1wnk53ht.fsf@arm.com","threadId":"43410","inReplyTo":"38b2ab8a0611300616j54a9f8ase9b4f1c305b7c22b@mail.gmail.com","subject":"Re: How to prepend data when formatting patches ?","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@arm.com","sentAt":"2006-11-30T16:00:14Z","receivedAt":"2006-11-30T16:00:14Z","isPatch":false,"sender":{"key":"catalin.marinas@arm.com","avatar":null},"body":"\"Francis Moreau\" <francis.moro@gmail.com> wrote:\n> I'd like to add to all patchs created by \"git-format-patch\" command\n> the following line:\n>\n>         From: xxx.yyy <foo@crazy.com>\n\nIn the headers or in the message body? StGIT adds this line\nautomatically in the message body (and recently only if the sender is\ndifferent from the patch author but the templates are flexible and can\nbe changed).\n\n-- \n"},{"id":"295109","messageId":"38b2ab8a0611300816r19d883a8qab93c86ff11b7ed7@mail.gmail.com","threadId":"43410","inReplyTo":"Pine.LNX.4.63.0611301638430.30004@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: How to prepend data when formatting patches ?","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2006-11-30T16:16:55Z","receivedAt":"2006-11-30T16:16:55Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"On 11/30/06, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:\n> Hi,\n>\n> On Thu, 30 Nov 2006, Francis Moreau wrote:\n>\n> > I'd like to add to all patchs created by \"git-format-patch\" command\n> > the following line:\n> >\n> >        From: xxx.yyy <foo@crazy.com>\n>\n> From Documentation/git-format-patch.txt:\n>\n> -- snip --\n>\n> CONFIGURATION\n> -------------\n> You can specify extra mail header lines to be added to each\n> message in the repository configuration as follows:\n>\n\nI stupily thought that it couldn't be used to prepend message for the\nmessage body. But since it appends the line at the end of mail header,\nit does the right thing for me.\n\nThanks for your quick answer\n-- \n"},{"id":"294652","messageId":"38b2ab8a0611300819k74da17dcw2e3db376d2cc165b@mail.gmail.com","threadId":"43410","inReplyTo":"tnx1wnk53ht.fsf@arm.com","subject":"Re: How to prepend data when formatting patches ?","fromName":"Francis Moreau","fromEmail":"francis.moro@gmail.com","sentAt":"2006-11-30T16:19:42Z","receivedAt":"2006-11-30T16:19:42Z","isPatch":false,"sender":{"key":"francis.moro@gmail.com","avatar":null},"body":"Hi\n\nOn 11/30/06, Catalin Marinas <catalin.marinas@arm.com> wrote:\n> \"Francis Moreau\" <francis.moro@gmail.com> wrote:\n> > I'd like to add to all patchs created by \"git-format-patch\" command\n> > the following line:\n> >\n> >         From: xxx.yyy <foo@crazy.com>\n>\n> In the headers or in the message body?\n\nJohannes adviced me to use:\n\n        [format]\n                headers = \"Organization: git-foo\\n\"\n\nconfiguration. And it works both for mail header and message body.\n\nthanks\n-- \n"}]}