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

Re: Add an empty directory?

From
Petr Baudis <pasky@suse.cz>
Date
Aug 13, 2005, 19:55 UTC
Message-ID
<20050813195556.GK5608@pasky.ji.cz>
In-Reply-To
<Pine.LNX.4.58.0508131238150.3553@g5.osdl.org>

Dear diary, on Sat, Aug 13, 2005 at 09:41:45PM CEST, I got a letter where Linus Torvalds <torvalds@osdl.org> told me that...

Show 10 quoted lines
> On Sat, 13 Aug 2005, Carl Baldwin wrote:
> > 
> > The bottom line is that I don't really see many situations where it is
> > absolutely necessary but it is a convenience.  Not supporting it may
> > seem like an artificial limit that really didn't need to be there.
> 
> Well, there is an argument for not supporting it, namely that the way 
> patches work, traditionally a directory that became empty is deleted 
> (because patches have no way of saying "remove directory" or "create 
> directory").

If we have rename patches, why couldn't our patches deal with directories as well? And git-apply, cg-patch etc might have a way to behave in a "traditional" way for non-git patches and if a patch removes all files in a directory, kill the directory.

That is, I would solve this on the SCM<->patches boundary, not fundamentally limit the SCM itself.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
If you want the holes in your knowledge showing up try teaching
someone.  -- Alan Cox
Previous: Linus TorvaldsNext: Carl Baldwin
Message 5 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.