From: Shawn Pearce Date: Thu, 07 Dec 2006 19:43:58 GMT Subject: Re: [PATCH 2/2] Optionally check for uncommitted changes before switching branches. Message-ID: <20061207194358.GF12143@spearce.org> In-Reply-To: <7vu007sdhp.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > "Shawn O. Pearce" 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? --