From: Paul Eggert <eggert@CS.UCLA.EDU>
To: Junio C Hamano <junkio@cox.net>
Cc: Jim Meyering <jim@meyering.net>,
git@vger.kernel.org, bug-diffutils@gnu.org
Subject: Re: [PATCH] Don't use $author_name undefined when $from contains no /\s</.
Date: Thu, 19 Oct 2006 14:28:54 -0700 [thread overview]
Message-ID: <87fydkj8q1.fsf@penguin.cs.ucla.edu> (raw)
In-Reply-To: <7vk62wruum.fsf@assigned-by-dhcp.cox.net> (Junio C. Hamano's message of "Thu, 19 Oct 2006 12:03:45 -0700")
Junio C Hamano <junkio@cox.net> writes:
> I see no good reason, other than saving a single byte from the
> output stream perhaps.
That wasn't the motivation. Rather, it was to support the
style where people use editors that highlight trailing
blanks, since trailing blanks can cause trouble in some
contexts (e.g., they can change the semantics of C programs
and Makefiles). When examining unified diffs, any added or
removed trailing blanks will be easy to spot with such an
editor, but only if "diff -u" doesn't output any trailing
blanks of its own.
You can read more about this at the thread that inspired
the diffutils change, rooted here:
http://lists.gnu.org/archive/html/bug-gnu-utils/2006-09/msg00005.html
> Does that mean if you have a line that has only one TAB (perhaps
> caused by broken autoindent in the editor), that is "input data"
> and is output as "SP TAB LF"?
Yes, that's correct. In the highlighting-editor scenario,
such a line would be highlighted, but the people who want to
see trailing white space highlighted will indeed want the
highlighting here, so it's fine.
This change was not motivated by broken MUAs. Broken MUAs
are a problem that GNU 'patch' has already had to deal with,
for many years. The change was motivated by a desire to
make significant trailing white space easier to find, when
people are examining text that contains some diffs and some
other stuff.
next prev parent reply other threads:[~2006-10-19 21:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-19 8:33 [PATCH] Don't use $author_name undefined when $from contains no /\s</ Jim Meyering
2006-10-19 16:19 ` Junio C Hamano
2006-10-19 18:16 ` Jim Meyering
2006-10-19 19:03 ` Junio C Hamano
2006-10-19 21:28 ` Paul Eggert [this message]
2006-10-19 21:34 ` Junio C Hamano
2006-10-19 23:48 ` Paul Eggert
2006-10-20 7:52 ` Junio C Hamano
2006-10-20 16:21 ` Linus Torvalds
2006-10-20 15:48 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fydkj8q1.fsf@penguin.cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=bug-diffutils@gnu.org \
--cc=git@vger.kernel.org \
--cc=jim@meyering.net \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).