convert: clarify line ending conversion warning
commitc970d30c2c362259316b5d63ef81fde591095a1b
authorAlex Henrie <alexhenrie24@gmail.com>
Fri, 8 Apr 2022 04:41:54 +0000 (7 22:41 -0600)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Apr 2022 19:53:34 +0000 (8 12:53 -0700)
tree90198d437fe4b57dbf03be03ebaf732e1979c113
parentfaa21c10d44184f616d391c158dcbb13b9c72ef3
convert: clarify line ending conversion warning

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 about when the line endings will be
changed and what they will be changed to.

On a platform whose native line endings are not CRLF (e.g. Linux), the
"git add" step in the following sequence triggers the warning in
question:

$ git config core.autocrlf true
$ echo 'Hello world!' >hello.txt
$ git add hello.txt
warning: LF will be replaced by CRLF in hello.txt
The file will have its original line endings in your working directory

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
t/t0027-auto-crlf.sh