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

Re: [PATCH] [RFC] add Message-ID field to log on git-am operation

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 23, 2008, 18:32 UTC
Message-ID
<7v4pax70lz.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080323171621.GA3886@atn.sw.ru>
Anton Gladkov <agladkov@parallels.com> writes:
Show 9 quoted lines
> On Sat, Mar 22, 2008 at 12:51:34PM -0700, Junio C Hamano wrote:
> ...
>> Wouldn't it work equally well to use applypatch-msg hook?  Use your
>> updated mailinfo to parse necessary information out of the incoming
>> message, and add Message-ID: to the commit log messsage, perhaps at the
>> end, in that hook?
>
> applypatch-msg hook executed on message applying, after that there could be
> useful to test applied patch, so it is not the place for notification sending.
And nobody suggested to send anything from the hook.

As I understood from your e-mail without proposed commit log message, your assumed workflow was:

	receive mail
        "git am" it
	test rewrite amend whatever you want to convince yourself that
         the received patch was Ok
        push the result out
        pushed-into repository has a hook to send notification,
         by picking up the Message-ID from the commit object
The only thing you need was that the message-id information is available
somewhere in the commit object.  I objected to your patch that puts it in
the commit object header and suggested it be placed in the commit log
message.  You can implement such custom commit munging to add an extra
Message-ID: line inside the hook.  You do not have to send out e-mail nor
anything from it.
Previous: Anton GladkovNext: Anton Gladkov
Message 4 of 5 in “[RFC] add Message-ID field to log on git-am operation”
  1. [RFC] add Message-ID field to log on git-am operationAnton Gladkov, Mar 21, 2008
  2. Junio C HamanoMar 22, 2008
  3. Anton GladkovMar 23, 2008
  4. Junio C HamanoMar 23, 2008
  5. Anton GladkovMar 24, 2008

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.