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

Re: why still no empty directory support in git

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 30, 2008, 07:45 UTC
Message-ID
<7viqp25coh.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200812300758.41988.robin.rosenberg.lists@dewire.com>
Robin Rosenberg <robin.rosenberg.lists@dewire.com> writes:
> You can have an empty tree, but the index doesn't store them, so they
> would be lost on checkout/commit. Linus sketched a solution, but nobody
> took the bait. Seems doable if anyone really wants it, but I'm certain
> it adds a lot of special cases.

I think the original poster covered that "a lot of special cases" as "unclear semantics", and there are more. Do you want to have the presense of empty directory "sticky"? Perhaps it later becomes non-empty at some point; will the "will always present" attribute kept then? What happens when such a directory becomes empty later? What should happen when a branch that has such a directory with "sticky existence" and another branch with the same directory but without the stickiness are merged?

But I think one bigger reason missing from the list is that many people loudly talked about "wants", but nobody made convincing argument on "needs" of such a feature.

Previous: Robin RosenbergNext: Ping Yin
Message 5 of 18 in “why still no empty directory support in git”
  1. Ping YinDec 30, 2008
  2. Asheesh LaroiaDec 30, 2008
  3. Jeff WhitesideDec 30, 2008
  4. Robin RosenbergDec 30, 2008
  5. Junio C HamanoDec 30, 2008
  6. Ping YinDec 30, 2008
  7. Asheesh LaroiaDec 30, 2008
  8. demerphqDec 30, 2008
  9. Asheesh LaroiaDec 30, 2008
  10. David BrownDec 31, 2008
  11. Jeff KingJan 1, 2009
  12. Johannes SchindelinJan 2, 2009
  13. Asheesh LaroiaJan 2, 2009
  14. Asheesh LaroiaJan 8, 2009
  15. Liu YubaoDec 30, 2008
  16. Anatol PomozovJan 1, 2009
  17. Johannes SchindelinDec 30, 2008
  18. Michael GaberDec 30, 2008

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.