Linus Torvalds <torvalds@xxxxxxxx> 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] - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html