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

Re: getting rid of extra directories

From
Junio C Hamano <junkio@cox.net>
Date
Oct 15, 2005, 18:00 UTC
Message-ID
<7vu0fimzhn.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051015174103.GA2609@tumblerings.org>
Zack Brown <zbrown@tumblerings.org> writes:
Show 7 quoted lines
> I've been using the latest Cogito. When I seek back and forth in a git repo,
> directories I've created tend to persist backward in time, cluttering up
> earlier versions.
>
> By the discussions on this list, I'm pretty sure there's a way to stop this,
> but I don't know clearly what it is, and I'm worried about trying things
> that might corrupt my repository. Could someone spell it out for me please?

I do not know exactly what Cogito "seek back and forth" does, but updating to git-core "master" branch may help.

Specifically, this commit intends to remove empty directory from the working tree, where previously checked out tree object had files/directories inside while newly checked out tree does not.

    commit 340e4f88c083b0692e6554b1c2c27fd43c7cc8d3
    Author: Junio C Hamano <junkio@cox.net>
    Date:   Mon Oct 10 17:34:08 2005 -0700
        Remove empty directories after read-tree -u.
        This fixes everybody's favorite gripe that switching branch
        with 'git checkout' leaves empty directories.
        Signed-off-by: Junio C Hamano <junkio@cox.net>
Previous: Zack BrownNext: Zack Brown
Message 2 of 9 in “getting rid of extra directories”
  1. Zack BrownOct 15, 2005
  2. Junio C HamanoOct 15, 2005
  3. Zack BrownOct 15, 2005
  4. Junio C HamanoOct 15, 2005
  5. Three-way merge with the index as one wayPetr Baudis, Nov 3, 2005
  6. Junio C HamanoNov 3, 2005
  7. Petr BaudisNov 3, 2005
  8. Junio C HamanoNov 3, 2005
  9. Junio C HamanoNov 4, 2005

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.