Re: Empty directories...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johan Herland
Date: Friday, July 20, 2007 - 1:29 am

On Wednesday 18 July 2007, Junio C Hamano wrote:

Sorry for jumping in late...

Why do you want to add _all_ directories, and not just the ones we want to 
explicitly track (independent of whether they're empty or not).

Basically, add a "--dir" flag to git-add, git-rm and friends, to tell them 
you're acting on the directory itself (rather than its (recursive) 
contents). "git-add --dir foo" will add the "040000 123abc... 0 foo" to the 
index/tree whether or not foo is an empty directory. "git-rm --dir foo" will 
remove that entry (or fail if it doesn't exist), but _not_ the contents of 
foo.

Since we're making directory tracking _explicit_, this should all be trivially 
backward-compatible.


...Johan

-- 
Johan Herland, <johan@herland.net>
www.herland.net
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Empty directories..., David Kastrup, (Tue Jul 17, 5:13 pm)
Re: Empty directories..., Johannes Schindelin, (Tue Jul 17, 5:35 pm)
Re: Empty directories..., Matthieu Moy, (Tue Jul 17, 5:39 pm)
Re: Empty directories..., Junio C Hamano, (Tue Jul 17, 7:23 pm)
Re: Empty directories..., David Kastrup, (Tue Jul 17, 10:56 pm)
Re: Empty directories..., David Kastrup, (Tue Jul 17, 11:07 pm)
Re: Empty directories..., Wincent Colaiuta, (Tue Jul 17, 11:34 pm)
Re: Empty directories..., Junio C Hamano, (Tue Jul 17, 11:53 pm)
Re: Empty directories..., Johannes Schindelin, (Wed Jul 18, 3:26 am)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 9:23 am)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 9:33 am)
Re: Empty directories..., Matthieu Moy, (Wed Jul 18, 9:39 am)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 10:06 am)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 10:34 am)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 10:38 am)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 11:05 am)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 2:37 pm)
Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 2:45 pm)
Re: Empty directories..., David Kastrup, (Wed Jul 18, 4:13 pm)
[RFC PATCH] Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 4:16 pm)
Re: [RFC PATCH] Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 4:40 pm)
Re: [RFC PATCH] Re: Empty directories..., David Kastrup, (Wed Jul 18, 4:42 pm)
Re: [RFC PATCH] Re: Empty directories..., Linus Torvalds, (Wed Jul 18, 5:22 pm)
Re: [RFC PATCH] Re: Empty directories..., Junio C Hamano, (Wed Jul 18, 10:28 pm)
Re: [RFC PATCH] Re: Empty directories..., Shawn O. Pearce, (Wed Jul 18, 10:38 pm)
Re: [RFC PATCH] Re: Empty directories..., Shawn O. Pearce, (Wed Jul 18, 11:09 pm)
Re: [RFC PATCH] Re: Empty directories..., Matthieu Moy, (Thu Jul 19, 1:13 am)
Re: [RFC PATCH] Re: Empty directories..., Tomash Brechko, (Thu Jul 19, 3:51 am)
Re: [RFC PATCH] Re: Empty directories..., Johannes Schindelin, (Thu Jul 19, 5:16 am)
Re: Empty directories..., Johan Herland, (Fri Jul 20, 1:29 am)
Re: Empty directories..., Robin Rosenberg, (Thu Jul 26, 4:33 pm)
Re: Empty directories..., David Kastrup, (Thu Jul 26, 10:22 pm)