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

Re: [PATCH v7 00/11] Add interpret-trailers builtin

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 10, 2014, 15:27 UTC
Message-ID
<xmqqa9cyrs55.fsf@gitster.dls.corp.google.com>
In-Reply-To
<loom.20140308T124447-78@post.gmane.org>
Øystein Walle <oystwa@gmail.com> writes:
Show 22 quoted lines
> Junio C Hamano <gitster <at> pobox.com> writes:
>
>> 
>> 	...
>> 
>> is easier to read and maintain if written like so (with using HT
>> properly---our MUAs may damage it and turn the indentation into
>> spaces):
>> 
>> 	... &&
>> 	sed -e "s/ Z$/ /" >>expect <<-\EOF &&
>>         Fixes: Z
>>         Acked-by= Z
>>         Reviewed-by: Z
>>         Signed-off-by: Z
>> 	EOF
>> 	...
>> 
>
> How about:
>
>    printf '%s: \n' Fixes Acked-by Reviewed-by Signed-off-by >> expect
Not really.
> This solution scores high marks in both readability and maintainability
> in my mind.

I actually considered that approach while I was writing the message you responded to, but discarded it because it forces us to commit to the view that we forsee no need to test an output that does not end with a trailing whitespace. And I do not think that is a limitation we want to place on this test.

Previous: Øystein Walle
Message 4 of 4 in “Add interpret-trailers builtin”
  1. 00/11 Add interpret-trailers builtinChristian Couder, Mar 6, 2014
  2. Junio C HamanoMar 7, 2014
  3. Øystein WalleMar 8, 2014
  4. Junio C HamanoMar 10, 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.