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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 6, 2022, 19:45 UTC
Message-ID
<xmqqk0c2xafp.fsf@gitster.g>
In-Reply-To
<CAPMMpohYRTSaTcRVTJ6y=Q7+FSOcSNjHjwDvUMhVv4JO7QDB_g@mail.gmail.com>
Tao Klerks <tao@klerks.biz> writes:
Show 19 quoted lines
> On Wed, Apr 6, 2022 at 8:04 PM Torsten Bögershausen <tboegi@web.de> wrote:
>
>> May be we can use "updates" instead of "touches" ?
>>
>> "In '%s', CRLF will be replaced by LF the next time Git updates it"
>
> Makes sense to me.
>
>>
>> Or may be
>>
>> "In '%s', CRLF will be replaced by LF the next time a `git checkout` updates it"
>>
>
> I believe we should stay away from the word "checkout" because it's
> neither accurate nor clear, for at least a couple of reasons:
> 1. We have long, in principle, been promoting the use of "git switch",
> and it's not obvious in a message like this one that this is
> considered to be equivalent.

It is not an equivalent. "switch" is a strict subset of "checkout" and branch switching is not the only case that would correct the line ending on such a file. Checking the contents out of the index or a named commit with "git checkout -- path" would also fix the line endings.

> 2. Files can be touched/updated by other commands/processes, like "git
> pull" (and "rebase", and probably others I can't think of)
Yes.
Previous: Alex HenrieNext: Junio C Hamano
Message 8 of 10 in “convert: clarify line ending conversion warning”
  1. convert: clarify line ending conversion warningAlex Henrie, Apr 5, 2022
  2. Ævar Arnfjörð BjarmasonApr 5, 2022
  3. Alex HenrieApr 5, 2022
  4. Junio C HamanoApr 6, 2022
  5. Torsten BögershausenApr 6, 2022
  6. Tao KlerksApr 6, 2022
  7. Alex HenrieApr 6, 2022
  8. Junio C HamanoApr 6, 2022
  9. Junio C HamanoApr 6, 2022
  10. convert: clarify line ending conversion warningAlex Henrie, Apr 8, 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.