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

Re: [PATCH,v4] git-checkout(1): mention fate of extraneous files

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 20, 2009, 10:07 UTC
Message-ID
<alpine.DEB.1.00.0901201106030.3586@pacific.mpi-cbg.de>
In-Reply-To
<7vy6x6odiw.fsf@gitster.siamese.dyndns.org>
Hi,
On Mon, 19 Jan 2009, Junio C Hamano wrote:
Show 9 quoted lines
> [...] the more I think about it, I do not think it is natural at all to 
> expect "checkout" to behave as if you did "rm -fr" everything and then 
> "tar xf" over the void.  What other SCM implements branch switching that 
> way, and what workflow would such a behaviour help?
> 
> We need to draw a line somewhere to avoid cluttering the documentation 
> too much, and I do not think this is something even a person with CVS 
> braindamage would get confused about, which is where I think is a 
> reasonable place to draw that line.

IIRC both CVS and Subversion allow you to say "$SCM co" with an existing working directory, which is then updated (and untracked files are left alone, as "$SCM up" always did and should do).

So no, not even people with CVS/SVN braindamage would get confused thusly.

Ciao, Dscho

Previous: Junio C HamanoNext: jidanni@jidanni.org
Message 12 of 13 in “git-checkout(1) mention fate of extraneous files”
  1. git-checkout(1) mention fate of extraneous filesjidanni@jidanni.org, Jan 17, 2009
  2. Markus HeidelbergJan 17, 2009
  3. jidanni@jidanni.orgJan 17, 2009
  4. git-checkout(1): mention fate of extraneous filesjidanni@jidanni.org, Jan 19, 2009
  5. Boyd Stephen Smith Jr.Jan 19, 2009
  6. jidanni@jidanni.orgJan 19, 2009
  7. Johannes SchindelinJan 19, 2009
  8. git-checkout(1): mention fate of extraneous filesjidanni@jidanni.org, Jan 20, 2009
  9. Johannes SchindelinJan 20, 2009
  10. Boyd Stephen Smith Jr.Jan 20, 2009
  11. Junio C HamanoJan 20, 2009
  12. Johannes SchindelinJan 20, 2009
  13. jidanni@jidanni.orgJan 20, 2009

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.