Re: Empty directories...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robin Rosenberg
Date: Thursday, July 26, 2007 - 4:33 pm

(
	I don't know which mail is the best to reply to and I probably missed 
	something in the thread, so bear with me if I'm repeating anything.
)

David. Reconsider "tracking" all directories and what that would give, 
compared to explicitly tracking specific ones and the requires magic entries.

Say we have a config setting that tells git never to remove empty trees. Linus 
patches could be a start for representing trees in the index. As an 
optimization the index could prune trees from the index if they contain 
things as long as the index *effectively* remembers all trees.

Using the patches again we could add empty directories to the index and remove 
them. No directory would be removed automatically, except maybe by a merge.

We would probably have only a few empty directories and new unexpected ones
would only pop up when we remove all blobs from one. Git status could tell us
about them so we will not forget them. It could even tell us about "new" empty
directories, which is probably the most important thing you'd want to know. 

Forgetting to untrack an empty directory would not be a big deal.

Whether to retain empty trees or not should be a repository policy, but an all 
or nothing setting.

-- robin
-
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)