Re: [PATCH] Add clean.requireForce option, and add -f option to git-clean to override it
- From
Josh Triplett <josh@freedesktop.org>
- Date
- Apr 24, 2007, 02:05 UTC
- Message-ID
- <462D65F5.4060405@freedesktop.org>
- In-Reply-To
- <462D6589.7060206@freedesktop.org>
Josh Triplett wrote:
Show 10 quoted lines
> Michael Spang wrote: >> Josh Triplett wrote: >>> +if [ "$disabled" = true ]; then >>> + echo "clean.requireForce set and -n or -f not given; refusing to clean" >>> + exit 1 >>> +fi >> How is it useful to abort completely? Wouldn't it be better to behave >> like -n unless -f is given? > > I don't think so, for a couple of reasons.
[...]
That said, a *separate* config option to make git-clean assume -n by default seems potentially useful as well.
- Josh Triplett