Thread (9 messages) flat view 9 messages, 6 authors, 2016-06-15

Re: [PATCH] Add ALL_LDFLAGS to the git target.

From: Mark Wooding <hidden>
Date: 2016-06-15 22:42:22

Possibly related (same subject, not in this thread)

Linus Torvalds [off-list ref] wrote:
I'd really just prefer to make the "-p" switch configurable, the way
it was before. No regexps, just the same rules as for GNU diff,
The rules for GNU diff aren't actually good enough if you can't
configure them.  We used to be able to put runes in GIT_DIFF_OPTS.
perhaps with the difference being that it would be on by default.
I thought it /was/ on by default:

: static const char *diff_opts = "-pu";

(killed in cebff98db).
Another possible approach is to say
 - if the first line of the real diff matches the rules, do NOT add 
   another line that matches the rule at the @@-line.

since the simple @@-line rule really doesn't make sense for any file that 
is "dense" (ie where most lines start with non-whitespace).
It's true, and that's an easy fix.  But it doesn't do any actual harm.

-- [mdw]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help