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

Re: [PATCH] tests: make 'test_oid' print trailing newline

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Dec 19, 2022, 14:03 UTC
Message-ID
<Y6BvKdWJIHKq7GMs@tapette.crustytoothpaste.net>
In-Reply-To
<20221218162905.3508164-1-szeder.dev@gmail.com>
On 2022-12-18 at 16:29:05, SZEDER Gábor wrote:
Show 5 quoted lines
> Arguably we would be better off if 'test_oid' terminated its output
> with a LF.  So let's update 'test_oid' accordingly, update its tests
> in t0000 to account for the extra character in those size tests, and
> remove the now unnecessary 'echo $(...)' command substitutions around
> 'test_oid' invocations as well.

I don't recall that there was a particular reason for me to do it the way that it was, and if the commit message doesn't mention it, I think it's fine to replace it. Perhaps I intended to allow writing the binary form as well as the text form, in which case a newline would be undesirable, but I simply don't recall.

All that to say, I think this patch is fine as it stands.
-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 5 of 7 in “tests: make 'test_oid' print trailing newline”
  1. tests: make 'test_oid' print trailing newlineSZEDER Gábor, Dec 18, 2022
  2. Junio C HamanoDec 19, 2022
  3. SZEDER GáborDec 22, 2022
  4. Junio C HamanoDec 23, 2022
  5. brian m. carlsonDec 19, 2022
  6. Ævar Arnfjörð BjarmasonDec 19, 2022
  7. Junio C HamanoDec 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.