git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git notes from incoming patch
@ 2015-03-03  1:32 Keller, Jacob E
  2015-03-03 20:14 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Keller, Jacob E @ 2015-03-03  1:32 UTC (permalink / raw
  To: git@vger.kernel.org

Hi,

I am wondering whether it is possible to read from a format-patch input
and add notes when we generate the applied patch.

The use case is to be able to send patches that had notes appended via

$git format-patch --notes ...

And have notes objects created on the remote repository to store this
information.

Is there any way to do this? and/or is there a way to get the same
results that maybe doesn't use notes?

The problem we are trying to solve is a way to track some information
about a patch that we need internally without submitting it upstream
when we submit the patches later. We use email to handle internal patch
queues, so essentially we want to be able to add note objects to the
format-patch and send them via email.

Regards,
Jake

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git notes from incoming patch
  2015-03-03  1:32 git notes from incoming patch Keller, Jacob E
@ 2015-03-03 20:14 ` Junio C Hamano
  2015-03-03 21:08   ` Keller, Jacob E
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2015-03-03 20:14 UTC (permalink / raw
  To: Keller, Jacob E; +Cc: git@vger.kernel.org

"Keller, Jacob E" <jacob.e.keller@intel.com> writes:

> I am wondering whether it is possible to read from a format-patch input
> and add notes when we generate the applied patch.

I would think post-applypatch hook is the right place to do this.
The hook has access to the incoming message in $GIT_DIR/rebase-apply
directory ('next' records the message number in the series, and then
you have individual pieces of e-mails separated out into 0001, 0002,
etc. you can read from), and "HEAD" already points at the result of
applying the patch.

Peek 'post-applypatch' on my 'todo' branch for inspirations.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: git notes from incoming patch
  2015-03-03 20:14 ` Junio C Hamano
@ 2015-03-03 21:08   ` Keller, Jacob E
  0 siblings, 0 replies; 3+ messages in thread
From: Keller, Jacob E @ 2015-03-03 21:08 UTC (permalink / raw
  To: Junio C Hamano; +Cc: git@vger.kernel.org

> -----Original Message-----
> From: Junio C Hamano [mailto:gitster@pobox.com]
> Sent: Tuesday, March 03, 2015 12:14 PM
> To: Keller, Jacob E
> Cc: git@vger.kernel.org
> Subject: Re: git notes from incoming patch
> 
> "Keller, Jacob E" <jacob.e.keller@intel.com> writes:
> 
> > I am wondering whether it is possible to read from a format-patch input
> > and add notes when we generate the applied patch.
> 
> I would think post-applypatch hook is the right place to do this.
> The hook has access to the incoming message in $GIT_DIR/rebase-apply
> directory ('next' records the message number in the series, and then
> you have individual pieces of e-mails separated out into 0001, 0002,
> etc. you can read from), and "HEAD" already points at the result of
> applying the patch.
> 
> Peek 'post-applypatch' on my 'todo' branch for inspirations.

Excellent, I will investigate this.

Regards,
Jake

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-03 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03  1:32 git notes from incoming patch Keller, Jacob E
2015-03-03 20:14 ` Junio C Hamano
2015-03-03 21:08   ` Keller, Jacob E

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).