Re: [PATCH] convert: clarify line ending conversion warning
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Apr 4, 2022, 06:06 UTC
- Message-ID
- <220404.867d85l6ok.gmgdl@evledraar.gmail.com>
- In-Reply-To
- <20220404055151.160184-1-alexhenrie24@gmail.com>
On Sun, Apr 03 2022, Alex Henrie wrote:
Show 17 quoted lines
> The warning about converting line endings is extremely confusing. Its > two sentences each use the word "will" without specifying a timeframe, > which makes it sound like both sentences are referring to the same > timeframe. On top of that, it uses the term "original line endings" > without saying whether "original" means LF or CRLF. > > Rephrase the warning to be clear that line endings have not been changed > in the working directory but will be changed on the next checkout, and > explicitly say which line endings the file currently has in the working > directory. > > Example commands to trigger the warning on Linux: > > git config core.autocrlf true > echo 'Hello world!' > hello.txt > git add hello.txt > git commit -m "Add hello.txt"
Just eyeballing this, while there might be some improvements here one thing to consider is atht now %s isn't at the end of the line.
It's fine for hello.txt, but consider longer paths, before:
LF will be replaced by CRLF in /home/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello.txt.
V.s.:
LF will be replaced by CRLF in /home/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello/hello.txt the next time you check it out.