{"thread":{"id":"38685","subject":"git notes from incoming patch","startedAt":"2015-03-03T01:32:38Z","lastAt":"2015-03-03T21:08:45Z","messageCount":3,"participants":["Keller, Jacob E","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"256883","messageId":"1425346358.13037.13.camel@intel.com","threadId":"38685","inReplyTo":null,"subject":"git notes from incoming patch","fromName":"Keller, Jacob E","fromEmail":"jacob.e.keller@intel.com","sentAt":"2015-03-03T01:32:38Z","receivedAt":"2015-03-03T01:32:38Z","isPatch":false,"sender":{"key":"jacob.e.keller@intel.com","avatar":"https://avatars.githubusercontent.com/u/874719?v=4"},"body":"Hi,\n\nI am wondering whether it is possible to read from a format-patch input\nand add notes when we generate the applied patch.\n\nThe use case is to be able to send patches that had notes appended via\n\n$git format-patch --notes ...\n\nAnd have notes objects created on the remote repository to store this\ninformation.\n\nIs there any way to do this? and/or is there a way to get the same\nresults that maybe doesn't use notes?\n\nThe problem we are trying to solve is a way to track some information\nabout a patch that we need internally without submitting it upstream\nwhen we submit the patches later. We use email to handle internal patch\nqueues, so essentially we want to be able to add note objects to the\nformat-patch and send them via email.\n\nRegards,\nJake\n"},{"id":"256920","messageId":"xmqq4mq1bzzb.fsf@gitster.dls.corp.google.com","threadId":"38685","inReplyTo":"1425346358.13037.13.camel@intel.com","subject":"Re: git notes from incoming patch","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-03-03T20:14:16Z","receivedAt":"2015-03-03T20:14:16Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Keller, Jacob E\" <jacob.e.keller@intel.com> writes:\n\n> I am wondering whether it is possible to read from a format-patch input\n> and add notes when we generate the applied patch.\n\nI would think post-applypatch hook is the right place to do this.\nThe hook has access to the incoming message in $GIT_DIR/rebase-apply\ndirectory ('next' records the message number in the series, and then\nyou have individual pieces of e-mails separated out into 0001, 0002,\netc. you can read from), and \"HEAD\" already points at the result of\napplying the patch.\n\nPeek 'post-applypatch' on my 'todo' branch for inspirations.\n"},{"id":"256930","messageId":"02874ECE860811409154E81DA85FBB585746C272@ORSMSX115.amr.corp.intel.com","threadId":"38685","inReplyTo":"xmqq4mq1bzzb.fsf@gitster.dls.corp.google.com","subject":"RE: git notes from incoming patch","fromName":"Keller, Jacob E","fromEmail":"jacob.e.keller@intel.com","sentAt":"2015-03-03T21:08:45Z","receivedAt":"2015-03-03T21:08:45Z","isPatch":false,"sender":{"key":"jacob.e.keller@intel.com","avatar":"https://avatars.githubusercontent.com/u/874719?v=4"},"body":"> -----Original Message-----\n> From: Junio C Hamano [mailto:gitster@pobox.com]\n> Sent: Tuesday, March 03, 2015 12:14 PM\n> To: Keller, Jacob E\n> Cc: git@vger.kernel.org\n> Subject: Re: git notes from incoming patch\n> \n> \"Keller, Jacob E\" <jacob.e.keller@intel.com> writes:\n> \n> > I am wondering whether it is possible to read from a format-patch input\n> > and add notes when we generate the applied patch.\n> \n> I would think post-applypatch hook is the right place to do this.\n> The hook has access to the incoming message in $GIT_DIR/rebase-apply\n> directory ('next' records the message number in the series, and then\n> you have individual pieces of e-mails separated out into 0001, 0002,\n> etc. you can read from), and \"HEAD\" already points at the result of\n> applying the patch.\n> \n> Peek 'post-applypatch' on my 'todo' branch for inspirations.\n\nExcellent, I will investigate this.\n\nRegards,\nJake\n"}]}