git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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?

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “Optionally check for uncommitted changes before switching branches.”
  1. 2/2 Optionally check for uncommitted changes before switching branches.Shawn O. Pearce, Dec 7, 2006
  2. Junio C HamanoDec 7, 2006
  3. Shawn PearceDec 7, 2006
  4. Junio C HamanoDec 7, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.