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

Re: Add an empty directory?

From
Junio C Hamano <junkio@cox.net>
Date
Aug 13, 2005, 19:45 UTC
Message-ID
<7v64u9mxi5.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050813180008.GJ5608@pasky.ji.cz>
Petr Baudis <pasky@suse.cz> writes:
> the object databases supports it, but the index file does not. But yes,
> it should be supported, I think.

I think if this is done correctly "read-tree -m -u" two-tree switch could even remove directories that existed in the old tree but not in the new tree that has become empty.

On the other hand, although I haven't started looking, adding this to index file might involve a major surgery. Practically everybody expects it is does not have an directory entry. This includes reading trees, merging two or more stages, finding directory/file conflicts, etc. etc...

Previous: Carl Baldwin
Message 7 of 7 in “Add an empty directory?”
  1. Carl BaldwinAug 13, 2005
  2. Petr BaudisAug 13, 2005
  3. Carl BaldwinAug 13, 2005
  4. Linus TorvaldsAug 13, 2005
  5. Petr BaudisAug 13, 2005
  6. Carl BaldwinAug 13, 2005
  7. Junio C HamanoAug 13, 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.