Anton Gladkov <agladkov@xxxxxxxxxxxxx> writes: > 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html