[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] new option --ignore-trailing-space-change for diff
From: |
Eric Backus |
Subject: |
Re: [PATCH] new option --ignore-trailing-space-change for diff |
Date: |
Thu, 1 Jul 2004 11:17:49 -0700 |
"Hans-Bernhard Broeker" <address@hidden> wrote in message
news:address@hidden
> Roland McGrath <address@hidden> wrote:
>
> > This patch adds --ignore-trailing-space-change, short option -z. This
is
> > similar to -b, but ignores only trailing white space. I find this is
> > always what I want for making diffs of code.
>
> I would like to object to that reasoning, and instead state that
> nobody ever actually wants or needs trailing white space in text
> files, so it should be eradicated immediately as it's spotted.
Sometimes I need to take code from a Linux machine and work on it on a
Windows machine. When I'm done, and go back to the Linux machine, sometimes
the line endings have all been changed to CR/LF. At that point, what's
important to me is finding which files did I change, and
"diff --ignore-trailing-space" would work better for that than "diff -b".
--
Eric Backus