Re: git notes from incoming patch

2015-03-03 Thread Junio C Hamano
Keller, Jacob E jacob.e.kel...@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.
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


RE: git notes from incoming patch

2015-03-03 Thread Keller, Jacob E
 -Original Message-
 From: Junio C Hamano [mailto:gits...@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.kel...@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
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html