From: Antoine Pelisse Date: Sat, 01 Jun 2013 08:48:35 GMT Subject: Re: [PATCH] diff: add --ignore-blank-lines option Message-ID: In-Reply-To: On Mon, May 27, 2013 at 9:14 AM, Antoine Pelisse wrote: > On Sun, May 26, 2013 at 10:35 PM, Johannes Sixt wrote: >> I'm thinking of diffs of files with CRLF > > Good you did, because I didn't ;-) > >> line breaks, where the CR would count as whitespace in the line, I think. > > With the current implementation, an empty line with CRLF will not show > as a blank line if no space option is given. As CR is a space > according to isspace(3), the line will be removed with any space > option. Maybe it would be worth adding the diff(1) "--strip-trailing-cr" option. So that you could remove empty lines if you have dos line endings while caring about eol space-changes (or other space changes).