Re: the war on trailing whitespace
- From
Sam Ravnborg <sam@ravnborg.org>
- Date
- Feb 26, 2006, 19:45 UTC
- Message-ID
- <20060226194529.GA21009@mars.ravnborg.org>
- In-Reply-To
- <Pine.LNX.4.64.0602260925170.22647@g5.osdl.org>
On Sun, Feb 26, 2006 at 09:29:00AM -0800, Linus Torvalds wrote:
Show 11 quoted lines
> > > On Sat, 25 Feb 2006, Andrew Morton wrote: > > > > I'd suggest a) git will simply refuse to apply such a patch unless given a > > special `forcing' flag, b) even when thus forced, it will still warn and c) > > with a different flag, it will strip-then-apply, without generating a > > warning. > > This doesn't do the "strip-then-apply" thing, but it allows you to make > git-apply generate a warning or error on extraneous whitespace.
Can this somehow be done in a way so everyone that clones your tree will inherit the warn/error on whitespace setting? In this way we make sure it gets enabled automagically in many trees and I do not have to remember yet another options.
Alternatively something that is enabled for a tree so I only have to do something once - a trigger maybe?
Sam