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