Re: [PATCH v2] git-am: add option to extract email Message-Id: tag into commit log

2014-07-03 Thread Avi Kivity
On 07/02/2014 08:17 PM, Junio C Hamano wrote: Avi Kivity writes: + if test 't' == "$message_id" + then + grep ^Message-Id: "$dotest/info" || true + fi if test ''

Re: [PATCH v4] git-am: add option to extract email Message-Id: tag into commit log

2014-07-02 Thread Avi Kivity
On 07/02/2014 06:03 PM, Torsten Bögershausen wrote: @@ -565,6 +568,7 @@ Use \"git am --abort\" to remove it.")" echo " $git_apply_opt" >"$dotest/apply-opt" echo "$threeway" >"$dotest/threeway" echo "$sign" >"$dotest/sign" + echo "$message_id" >"$dotest/message-id"

[PATCH v4] git-am: add option to extract email Message-Id: tag into commit log

2014-07-02 Thread Avi Kivity
by adding a --message-id option (abbreviated as -m) to git-am, which will then extract the message ID and append it to the email commit log. Signed-off-by: Avi Kivity --- v4: adjust coding style recover message_id variable after a resumed git-am use sane_grep drop unneeded grep error

Re: [PATCH v2] git-am: add option to extract email Message-Id: tag into commit log

2014-07-02 Thread Avi Kivity
On 07/02/2014 05:18 PM, Fabian Ruch wrote: Hi Avi, On 07/02/2014 10:51 AM, Avi Kivity wrote: Some workflows prefer to track exactly which email message was used to generate a commit. This can be used, for example, to generate an automated acknowledgement when a patch is committed as a

Re: [PATCH v2] git-am: add option to extract email Message-Id: tag into commit log

2014-07-02 Thread Avi Kivity
On 07/02/2014 12:58 PM, Torsten Bögershausen wrote: @@ -757,6 +761,10 @@ To restore the original branch and stop patching run \"\$cmdline --abort\"." then cat "$dotest/msg-clean" fi + if test 't' == "$message_id" The == is b

[PATCH v3] git-am: add option to extract email Message-Id: tag into commit log

2014-07-02 Thread Avi Kivity
by adding a --message-id option (abbreviated as -m) to git-am, which will then extract the message ID and append it to the email commit log. Signed-off-by: Avi Kivity --- v3: remove bashism and unneeded quoting v2: adjust to pass test suite (t5100) Documentation/git-am.txt | 6 ++ builtin

[PATCH v2] git-am: add option to extract email Message-Id: tag into commit log

2014-07-02 Thread Avi Kivity
by adding a --message-id option (abbreviated as -m) to git-am, which will then extract the message ID and append it to the email commit log. Signed-off-by: Avi Kivity --- v2: adjust to pass test suite (t5100) Documentation/git-am.txt | 6 ++ builtin/mailinfo.c | 2 +- git-am.sh

[PATCH] git-am: add option to extract email Message-Id: tag into commit log

2014-07-02 Thread Avi Kivity
by adding a --message-id option (abbreviated as -m) to git-am, which will then extract the message ID and append it to the email commit log. Signed-off-by: Avi Kivity --- Documentation/git-am.txt | 6 ++ builtin/mailinfo.c | 2 +- git-am.sh| 10 +- 3 files