Re: [PATCH 2/2] Optionally check for uncommitted changes before switching branches.
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Dec 7, 2006, 19:43 UTC
- Message-ID
- <20061207194358.GF12143@spearce.org>
- In-Reply-To
- <7vu007sdhp.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 6 quoted lines
> "Shawn O. Pearce" <spearce@spearce.org> writes: > > > Git shouldn't cause the user to make mistakes when it can help to > > prevent them. So now users may set checkout.requireCleanDirectory > > to true in their config file to have git-checkout verify the working > > directory is clean before switching branches.
[...snip...]
> People with this new configuration set and has to override it > with a command line switch will lose this ability if you > overload that on '-m'.
Yes. That's a problem with this patch.
What about when this option is enabled then -m means do what we did before, and -m -m (or -mm, or -m2) does what -m does when the option is false?