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

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

From
Alex Henrie <alexhenrie24@gmail.com>
Date
Apr 6, 2022, 18:30 UTC
Message-ID
<CAMMLpeRw2SMaPhesXn7Q5CGq2Kmk=eJrPBnFBnJex8-OvfSz5w@mail.gmail.com>
In-Reply-To
<CAPMMpohYRTSaTcRVTJ6y=Q7+FSOcSNjHjwDvUMhVv4JO7QDB_g@mail.gmail.com>
On Wed, Apr 6, 2022 at 12:18 PM Tao Klerks <tao@klerks.biz> wrote:
Show 8 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.

I don't like this wording as much because "update" could more easily be taken to mean something that happens in the index or in a commit, not in the working directory. But maybe it needs more clarification anyway, e.g. "In the working copy of '%s'..."

Ævar, would the phrase "In the working copy" resolve your concern about the new message "[not offering] the working directory advice at all"?

Show 12 quoted lines
> > 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.
> 2. Files can be touched/updated by other commands/processes, like "git
> pull" (and "rebase", and probably others I can't think of)
I agree: Talking about the `git checkout` command is too specific.
-Alex
Previous: Tao KlerksNext: Junio C Hamano
Message 7 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.