login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <junkio@...>, David Kastrup <dak@...>
Cc: Matthieu Moy <Matthieu.Moy@...>, Johannes Schindelin <Johannes.Schindelin@...>, Git Mailing List <git@...>
Date: Wednesday, July 18, 2007 - 7:40 pm

On Wed, 18 Jul 2007, Linus Torvalds wrote:

Oh, one word of warning: that whole "pretend_sha1_file()" thing won't 
create the object itself, and when I did the limited testing that I did, I 
actually made sure had a magic zero-sized tree object in my object 
directory.

If you don't, some things will complain, because they end up getting a 
SHA1 that they cannot look up, becasue *they* didn't create that pretend 
entry.

I didn't know which way I wanted to go with that thing. I was kind of 
thinking that maybe we would just have the zero-sized OBJ_BLOB and 
OBJ_TREE objects as special magical things, and have all git programs just 
do that "pretend" at the beginning.

But that kind of thing is probably just a totally unnecessary special 
case, and instead, that "pretend_sha1_file()" should have just been a

	write_sha1_file(NULL, 0, "tree", ce->sha1);

instead.

Anyway, if there are issues with not finding an object called 
4b825dc642cb6eb9a060e54bf8d69288fbee4904, then that's the empty tree 
object, and that pretend thing was the cause.

(The git repo itself has the empty tree as an object in it, because one of 
the commits has that - probably as a result of a bug, but there you have 
it)

		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)
speck-geostationary