Thread (46 messages) flat view 46 messages, 5 authors, 2016-06-15

Re: [PATCH] Allow setting default diff options via diff.defaultOptions

From: Jeff King <hidden>
Date: 2016-06-15 22:46:35

On Thu, Apr 09, 2009 at 10:45:40AM +0200, Johannes Schindelin wrote:
The proper way would be to have options to _undo_ every diff option, I 
guess, as this would also help aliases in addition to defaultOptions.
I agree with this sentiment, no matter which approach is taken. I am
more like to say "take my usual defaults, but tweak this one thing" than
to say "turn off all of my defaults".
Now, it is easy to put a patch on top of my patch to support something 
like --no-defaults.
No, it's not. We went over this in great detail earlier in the thread.
If you want:

  git diff --no-defaults

then you basically have to parse twice to avoid the chicken-and-egg
problem. Which is why I suggested:

  git --no-defaults diff

which does work. Keith's solution does allow "git diff --no-defaults".

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