login
Header Space

 
 

Re: [RFC PATCH] Re: Empty directories...

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Julian Phillips <julian@...>
Cc: Johan Herland <johan@...>, <git@...>
Date: Friday, July 20, 2007 - 8:18 pm

On Fri, 20 Jul 2007, Julian Phillips wrote:


The really sad part about this discussion is that the ".gitignore trick" 
is really technically no different at all from the one that David Kastrup 
has been advocating a few times, except he calls his ".gitignore" just 
".", and seems to think that it's somehow different.

It is true that ".gitignore" and "." _are_ different.

But they are actually different in the sense that the ".gitignore" thing 
is something you can control, while the "." thing is something that is in 
all directories on UNIX, which is exactly why it _must_not_ be used by git 
to mark existence. Exactly because it has thus lost its ability to be 
something you can tune per-directory in the working tree!

That said, I actually like my patch, because the git tree structures 
actually lend themselves very naturally to the "empty tree", and I know 
people have even built up those kinds of trees on purpose, even if the 
index doesn't support that notion.

So in that sense, teaching the index about an empty tree is in some ways 
the "right thing" to do, if only because it means that the index can 
finally express something that the tree objects themselves have always 
been able to validly encode.

			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:
Re: [RFC PATCH] Re: Empty directories..., Junio C Hamano, (Fri Jul 20, 6:34 am)
Re: [RFC PATCH] Re: Empty directories..., Linus Torvalds, (Fri Jul 20, 3:24 pm)
Re: [RFC PATCH] Re: Empty directories..., Johan Herland, (Fri Jul 20, 5:02 pm)
Re: [RFC PATCH] Re: Empty directories..., Linus Torvalds, (Fri Jul 20, 5:48 pm)
Re: [RFC PATCH] Re: Empty directories..., Julian Phillips, (Fri Jul 20, 6:36 pm)
Re: [RFC PATCH] Re: Empty directories..., Linus Torvalds, (Fri Jul 20, 8:18 pm)
speck-geostationary