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

Re: [PATCH v4 0/3] t0021: convert perl script to C test-tool helper

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 15, 2022, 13:01 UTC
Message-ID
<oop2rosn-011s-9rpn-04s5-ss12n45q615p@tzk.qr>
In-Reply-To
<cover.1660522524.git.matheus.bernardino@usp.br>
Hi Matheus,
On Sun, 14 Aug 2022, Matheus Tavares wrote:
Show 11 quoted lines
> Main changes since v3:
> Patch 2:
> - Mentioned in commit message why we removed the flush() calls for the
>   log file handler.
> - Removed 'buf[size] = \0' and relied on the fact that packet_read()
>   already 0-terminates the buffer. This also allows us to use NULL
>   instead of &size in many places, dropping down the unneeded variable.
> - Used parse-options instead of manual argv fiddling. I'm not strongly
>   about one way or another, but I found the parse-options slightly
>   easier for new options that may be added in the future.
> - Style: removed unnecessary {} and newline.

While I think that the `parse-options` were unnecessary churn, I won't object because I find that I cannot motivate myself to care all that much (other reviewers seem to find this type of aspects super exciting, a sentiment I do not share). I care much more about the essence, about the actual improvement brought about by your patch series, which is to reduce Git's test suite's reliance on scripting.

The range-diff looks good to me, and I think this iteration is good to go.

Thanks, Dscho

Previous: Matheus TavaresNext: Junio C Hamano
Message 5 of 6 in “t0021: convert perl script to C test-tool helper”
  1. 0/3 t0021: convert perl script to C test-tool helperMatheus Tavares, Aug 15, 2022
  2. 1/3 t0021: avoid grepping for a Perl-specific string at filter outputMatheus Tavares, Aug 15, 2022
  3. 2/3 t0021: implementation the rot13-filter.pl script in CMatheus Tavares, Aug 15, 2022
  4. 3/3 tests: use the new C rot13-filter helper to avoid PERL prereqMatheus Tavares, Aug 15, 2022
  5. Johannes SchindelinAug 15, 2022
  6. Junio C HamanoAug 19, 2022

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.