Re: [PATCH v2 2/2] diff: --ignore-cr-at-eol
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 8, 2017, 00:49 UTC
- Message-ID
- <xmqqd14toaqr.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <xmqqh8u5ob0h.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
> These "--ignore-*" whitespace options are to help reviewing _other_ > changes without getting distracted by the class of changes these > options represent. I guess I may have to update the log message (I > do not think I wrote anything like that in the documentation update).
Here is what I just did with "commit --amend" (there is no change in the contents of the patch).
diff: --ignore-cr-at-eol
A new option --ignore-cr-at-eol tells the diff machinery to treat a
carriage-return at the end of a (complete) line as if it does not
exist.
Just like other "--ignore-*" options to ignore various kinds of
whitespace differences, this will help reviewing the real changes
you made without getting distracted by spurious CRLF<->LF conversion
made by your editor program.
Signed-off-by: Junio C Hamano <gitster@pobox.com>