git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git notes from incoming patch

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 3, 2015, 20:14 UTC
Message-ID
<xmqq4mq1bzzb.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1425346358.13037.13.camel@intel.com>
"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.
Previous: Keller, Jacob ENext: Keller, Jacob E
Message 2 of 3 in “git notes from incoming patch”
  1. Keller, Jacob EMar 3, 2015
  2. Junio C HamanoMar 3, 2015
  3. Keller, Jacob EMar 3, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.