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

Re: [PATCH v2] t0027: Add repoMIX and LF_nul

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 26, 2015, 04:32 UTC
Message-ID
<xmqqbnibzezj.fsf@gitster.dls.corp.google.com>
In-Reply-To
<553C0A9B.7060407@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 12 quoted lines
>> Hmph, would it still make sense to make sure that CRLF will stay CRLF
>> so that future changes to break this expectation can be caught?  Not
>> that such a breakage is likely...
>
> Thanks for amending.
>
> We have the file CRLF (and CRLFmixLF), where we check that CRLF stays CRLF and is not
> converted into CRLFLF.
>
> The LF_nul is to test the "auto text detection":
> It should not be converted into CRLF_nul in "auto mode",
> but should be converted when declared as "text" in .gitattributes.

The two paragraphs above may explain why the test would pass with the current code, but is that sufficient assurance that other people in future changes would not break the "It should not be" with their bugs that you do not foresee at this moment? Whenever you say "it should not be", I hear "if the code somehow does that, somebody broke our code", which in turn suggests me that catching that condition with tests is a good thing.

Or am I hearing you incorrectly?
Previous: Torsten Bögershausen
Message 5 of 5 in “t0027: Add repoMIX and LF_nul”
  1. t0027: Add repoMIX and LF_nulTorsten Bögershausen, Apr 25, 2015
  2. Johannes SchindelinApr 25, 2015
  3. Junio C HamanoApr 25, 2015
  4. Torsten BögershausenApr 25, 2015
  5. Junio C HamanoApr 26, 2015

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.