On Tue, Mar 4, 2014 at 12:57 PM, Ramon Ribó <ram...@compassis.com> wrote:

>
> I see no problem to consider space as a difference but I would not
> consider line endings (linux/windows) a difference to be shown in diff or
> annotate.
>

man isspace says:

      isspace()
              checks  for  white-space  characters.  In the "C" and "POSIX"
locales, these are: space, form-feed ('\f'), newline
              ('\n'), carriage return ('\r'), horizontal tab ('\t'), and
vertical tab ('\v').

i.e. "space" includes EOL characters, per long-standing tradition.

If a file differs only by line endings, its hash is still different, so
eliding EOL diffs by default could, IMO, be particularly confusing. Two
files, different hashes... no diffs? (That said, an option to disable them
as being treated as diffs would be very welcomed. :)

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to