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

Re: [PATCH] convert: clarify line ending conversion warning

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 4, 2022, 19:37 UTC
Message-ID
<xmqqtub8prm1.fsf@gitster.g>
In-Reply-To
<CAMMLpeQUZ3OfP=G-qKRjUVON=hninYEDQeeCrAdfM9maAZ3j7Q@mail.gmail.com>
Alex Henrie <alexhenrie24@gmail.com> writes:
Show 19 quoted lines
>> I have mixed feelings with this change, even though I agree that the
>> original is not good.  The first sentence of the updated text
>> already says that right now, the file ends with CRLF, and that the
>> conversion happen the next time you check out the file to the
>> working tree.  And that makes "For now ... still" totally redundant.
>>
>> Perhaps a single sentence, nothing more than
>>
>>         warning: in '%s', CRLF will be replaced by LF the next time
>>         you check it out
>>
>> is sufficient?  I dunno.
>
> I like your idea to move the file name to the start of the message,
> and I think that will address Ævar's concern as well.
>
> It doesn't matter to me whether the message is one sentence or two
> sentences. If you have a slight preference for one sentence then let's
> just do that.

"For now" smelled like sending a wrong and/or confusing message. Is it "for now" until we update the software, and with future versions of Git, "git add" will pretend as if the user immediately checked it out?

While I do not care too deeply between one and two sentences, getting rid of the seemingly redundant "For now" sentence will remove the source of such confusion, so ....

Previous: Alex Henrie
Message 8 of 8 in “convert: clarify line ending conversion warning”
  1. convert: clarify line ending conversion warningAlex Henrie, Apr 4, 2022
  2. Ævar Arnfjörð BjarmasonApr 4, 2022
  3. Tao KlerksApr 4, 2022
  4. Alex HenrieApr 4, 2022
  5. Tao KlerksApr 5, 2022
  6. Junio C HamanoApr 4, 2022
  7. Alex HenrieApr 4, 2022
  8. Junio C HamanoApr 4, 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.