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