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

Re: Simple UI question...

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 7, 2007, 11:29 UTC
Message-ID
<20070107112944.GF10351@spearce.org>
In-Reply-To
<204011cb0701070321w18942a3w7fb4f7ecd26fc457@mail.gmail.com>
Chris Lee <clee@kde.org> wrote:
Show 10 quoted lines
> Eric's shows the same problem - for some revision IDs, when I do a
> checkout, I only get the files that were changed in that revision.
> 
> >If Eric's version isn't always working then I'd have to suggest
> >that you exmaine the output of `git status` for switching to
> >some temporary branch based on $sha1sum.  Perhaps you have local
> >modifications which are carrying over in your working directory?
> 
> I assume 'removing everything in the working tree' counts as "local
> modifications"? :)

Yes! That's what's going wrong. Don't do "rm -rf *". Let Git take care of the empty directories for you. If Git deletes all source files in that directory (as they don't belong in this version that you are checking out) it will also delete the now empty directory.

The only time it fails is if you are on Windows and some process has the directory busy. :-)

-- 
Shawn.
Previous: Chris LeeNext: Chris Lee
Message 5 of 9 in “Simple UI question...”
  1. Chris LeeJan 7, 2007
  2. Josef "Jeff" SipekJan 7, 2007
  3. Shawn O. PearceJan 7, 2007
  4. Chris LeeJan 7, 2007
  5. Shawn O. PearceJan 7, 2007
  6. Chris LeeJan 7, 2007
  7. Junio C HamanoJan 7, 2007
  8. Chris LeeJan 7, 2007
  9. Junio C HamanoJan 7, 2007

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.