All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Keller\, Jacob E" <jacob.e.keller@intel.com>
Cc: "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git notes from incoming patch
Date: Tue, 03 Mar 2015 12:14:16 -0800	[thread overview]
Message-ID: <xmqq4mq1bzzb.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <1425346358.13037.13.camel@intel.com> (Jacob E. Keller's message of "Tue, 3 Mar 2015 01:32:38 +0000")

"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.

  reply	other threads:[~2015-03-03 20:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03  1:32 git notes from incoming patch Keller, Jacob E
2015-03-03 20:14 ` Junio C Hamano [this message]
2015-03-03 21:08   ` Keller, Jacob E

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqq4mq1bzzb.fsf@gitster.dls.corp.google.com \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=jacob.e.keller@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.