Re: Git Community Book

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Scott Chacon <schacon@...>
Cc: git list <git@...>
Date: Friday, September 5, 2008 - 4:27 pm

On Fri, 5 Sep 2008, Scott Chacon wrote:

The checksums in the index file "trailers" are all claiming to be 4 bytes, 
and that's wrong - they're full SHA1 sums at 20 bytes each.

The v2 pack-file _also_ has per-object CRC's, and those are indeed just 4 
bytes each, and are correctly listed as such.

The pack-file itself also has a few more things there, it's not just the 
"PACK" string and then the objects. It has two more 32-bit words: a pack 
file version number and the number of entries in the pack-file (all 
network byte order). It also has its own checksum at the end (20-byte SHA1 
again).

But looks good otherwise from a quick look.

		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:
Git Community Book, Scott Chacon, (Fri Sep 5, 3:08 pm)
Re: Git Community Book, Christos Τrochalakis, (Sat Sep 6, 2:26 pm)
Re: Git Community Book, Stephan Beyer, (Fri Sep 5, 8:48 pm)
Re: Git Community Book, Linus Torvalds, (Fri Sep 5, 4:27 pm)
Re: Git Community Book, Junio C Hamano, (Fri Sep 5, 3:41 pm)
Re: Git Community Book, Scott Chacon, (Fri Sep 5, 5:34 pm)
Re: Git Community Book, Shawn O. Pearce, (Sat Sep 6, 2:33 am)
Re: Git Community Book, Scott Chacon, (Sat Sep 6, 2:14 pm)
Re: Git Community Book, Felipe Contreras, (Fri Sep 5, 6:09 pm)
Re: Git Community Book, Thomas Adam, (Fri Sep 5, 3:15 pm)
Re: Git Community Book, Scott Chacon, (Fri Sep 5, 4:45 pm)