Re: Empty directories...

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Kastrup <dak@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, <git@...>
Date: Wednesday, July 18, 2007 - 12:33 pm

On Wed, 18 Jul 2007, Linus Torvalds wrote:

Btw, don't get me wrong: I think that in order to be better at tracking 
other SCM's idiotic choices, we could (and I foresee that we eventually 
have to) try to track empty directories as a special case too.

So I'm not _against_ the notion of tracking empty directories, and I would 
welcome patches that do so. As I mentioned in some earlier thread when 
this came up a few weeks ago, I actually suspect that the "subproject" 
support probably ended up making it easier, because in many ways an "empty 
directory" is very close to a "anonymous subproject" from a low-level 
plumbing standpoint (even if it is *not* so from a high-level standpoint).

So I suspect that adding support for empty directories ends up being about 
just slightly extending the places that now have subproject support to 
know about a new situation.

But I do want to point out that "tracking a directory" is not at all the 
same thing as "tracking a file", no matter how much you try to argue 
otherwise. The semantics are totally different, and it all boils down to 
the fact that when you track a file, you are always talking about the 
*full* content of the file, while tracking a directory is always about 
tracking just a *subset* of the contents of the directory.

Of course, with directories, there's the trivial case where the subset 
happens to be everything, but that is neither the common nor the 
interesting case. All the interesting and complex cases happen exactly 
when the directory has untracked files in it, and at that point 

 - you really aren't tracking "contents" any more
 - you can no longer recreate the directory from the data you have (so you 
   cannot remove it on branch switches etc)
 - ergo: you're not a content tracker any more, you're a "container" 
   tracker.

And really, the "nontracked files in a directory" is the *default* thing, 
not some really unusual thing that we could disallow.

But I'm not against adding support for "container tracking". I just want 
people to understand that it's something totally different from what we do 
now. It's much more like subproject support than tracking files.

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