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

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

From
AKAvi Kivity <avi@cloudius-systems.com>
Date
Jul 2, 2014, 16:15 UTC
Message-ID
<53B43021.9090506@cloudius-systems.com>
In-Reply-To
<53B41F28.8040205@web.de>
On 07/02/2014 06:03 PM, Torsten Bögershausen wrote:
Show 15 quoted lines
>> @@ -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"
>>   	echo "$utf8" >"$dotest/utf8"
>>   	echo "$keep" >"$dotest/keep"
>>   	echo "$scissors" >"$dotest/scissors"
>> @@ -651,6 +655,10 @@ then
>>   else
>>   	SIGNOFF=
>>   fi
>> +if test "$(cat "$dotest/message-id")" = t
> Does the usage of '"' inside of '"' look good, or can we write like this:
> if test $(cat "$dotest/message-id") = t
With your change, it will fail if the file is missing or empty.

Complex shell scripts cannot be made to look good. If that's a requirement then the script should be rewritten in a reasonable language.

Previous: Torsten Bögershausen
Message 3 of 3 in “git-am: add option to extract email Message-Id: tag into commit log”
  1. git-am: add option to extract email Message-Id: tag into commit logAvi Kivity, Jul 2, 2014
  2. Torsten BögershausenJul 2, 2014
  3. Avi KivityJul 2, 2014

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.