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

Re: [PATCH] t1016: clean up style

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 3, 2024, 02:42 UTC
Message-ID
<xmqqikt5xckk.fsf@gitster.g>
In-Reply-To
<2a385fcd-7cb2-4d6c-8372-2139f11c85a8@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 12 quoted lines
> Hi
>
> This looks correct according to CodingGuidelines, part “For shell
> scripts”.
>
> • Whitespace and redirect operator
> • Case arms indentation
> • Tabs for indentation.  It might look like some of the lines in the
>   preimage (term?) use two nesting levels set to four columns, but that
>   is because the first line is indented by four spaces and the next line
>   is indented with one tab (eight columns).  The postimage changes them
>   to use one tab per level.

Thanks for an easy-to-follow-concise-and-to-the-point review summary. Very much appreciated.

Show 12 quoted lines
>
> On Sat, Nov 2, 2024, at 17:53, Andrew Kreimer wrote:
>> Remove whitespace after redirect operator.
>>
>> Align mixed space/tab usages.
>>
>> Signed-off-by: Andrew Kreimer <algonell@gmail.com>
>> ...
>> +		test_cmp ${name}_content5 ${name}_content6
>> +	'
>
> Everything up to here looks like whitespace changes.  Indeed.
Show 12 quoted lines
>> +	test_expect_success $PREREQ "Verify ${name}'s sha256 content" '
>> +		git --git-dir=repo-sha256/.git cat-file ${type} ${sha256_oid}
>> >${name}_content7 &&
>> +		git --git-dir=repo-sha1/.git cat-file ${type} ${sha1_sha256_oid}
>> >${name}_content8 &&
>> +		test_cmp ${name}_content7 ${name}_content8
>> +	'
>>  }
>
> But this is diffed as an addition.  Seems like either a mistake or the
> commit message and/or patch comment (`---`) didn’t mention this kind of
> change.

Good eyes. I suspect that it is from a separate topic, and this patch is supposed to be preliminary clean-up for this change, or something?

Previous: Kristoffer HaugsbakkNext: Andrew Kreimer
Message 3 of 8 in “t1016: clean up style”
  1. t1016: clean up styleAndrew Kreimer, Nov 2, 2024
  2. Kristoffer HaugsbakkNov 2, 2024
  3. Junio C HamanoNov 3, 2024
  4. Andrew KreimerNov 3, 2024
  5. t1016: clean up styleAndrew Kreimer, Nov 3, 2024
  6. Kristoffer HaugsbakkNov 3, 2024
  7. Junio C HamanoNov 3, 2024
  8. Kristoffer HaugsbakkNov 4, 2024

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.