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

Re: What's cooking in git.git (May 2016, #02; Fri, 6)

From
Junio C Hamano <gitster@pobox.com>
Date
May 10, 2016, 07:20 UTC
Message-ID
<xmqqy47iqszk.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<alpine.DEB.2.20.1605100757410.4092@virtualbox>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 18 quoted lines
> On Fri, 6 May 2016, Junio C Hamano wrote:
>
>> * jc/fsck-nul-in-commit (2016-04-14) 2 commits
>>  - fsck: detect and warn a commit with embedded NUL
>>  - fsck_commit_buffer(): do not special case the last validation
>> 
>>  "git fsck" learned to catch NUL byte in a commit object as
>>  potential error and warn.
>> 
>>  What was the status of this one?  Ready to proceed?
>
> I think this code looks fine. Maybe two comments on the test:
>
>>               test_must_fail git -c fsck.nulInCommit=error fsck 2>warn.1 &&
>>               git fsck 2>warn.2 &&
>>               grep nulInCommit warn.2
>
> 1) warn.1 is not used. Maybe skip that redirection?
Or check it for expected result.  I don't know offhand which is better.
> 2) I was under the impression that we preferred test_i18ngrep over grep...

Only when the strings we are expecting are subject to i18n. I somehow did not think your report() codepath has any i18n/l10n?

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 5 of 9 in “What's cooking in git.git (May 2016, #02; Fri, 6)”
  1. Junio C HamanoMay 6, 2016
  2. Johannes SchindelinMay 10, 2016
  3. Lars SchneiderMay 11, 2016
  4. Johannes SchindelinMay 10, 2016
  5. Junio C HamanoMay 10, 2016
  6. Johannes SchindelinMay 13, 2016
  7. Lars SchneiderMay 10, 2016
  8. Junio C HamanoMay 10, 2016
  9. Junio C HamanoMay 10, 2016

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.