threads / discuss / 24927

format of git pack objects

Subject: format of git pack objects

## tl;dr

3 messages between Aug 31, 2010 and Aug 31, 2010.

replies: 2people: 2as markdown or json

Luke Kenneth Casson Leighton· Aug 31, 2010, 23:17 UTC · lore
hi folks,

where can i get information (specifications) on the format of git pack-objects... please don't say "look at the source code" unless there simply doesn't exist any format specifications. as part of the git p2p bittorrent vfs layer stuff, a "file save" operation doesn't "happen by magic": i need to actually verify the pack objects received: count the number of entries? or do i?

tia,
l.
Shawn O. Pearce· Aug 31, 2010, 23:19 UTC · re: Luke Kenneth Casson Leighton · lore

Re: format of git pack objects

Luke Kenneth Casson Leighton <luke.leighton@gmail.com> wrote:
Show 6 quoted lines
> where can i get information (specifications) on the format of git
> pack-objects... please don't say "look at the source code" unless
> there simply doesn't exist any format specifications.  as part of the
> git p2p bittorrent vfs layer stuff, a "file save" operation doesn't
> "happen by magic": i need to actually verify the pack objects
> received: count the number of entries?  or do i?

Its in the Documentation/technical subdirectory of git.git[1]. Look at pack-format.txt. Its rather sparse though.

[1] http://git.kernel.org/?p=git/git.git;a=tree;f=Documentation/technical;hb=HEAD
-- 
Shawn.
Luke Kenneth Casson Leighton· Aug 31, 2010, 23:22 UTC · re: Shawn O. Pearce · lore

Re: format of git pack objects

On Wed, Sep 1, 2010 at 12:19 AM, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 10 quoted lines
> Luke Kenneth Casson Leighton <luke.leighton@gmail.com> wrote:
>> where can i get information (specifications) on the format of git
>> pack-objects... please don't say "look at the source code" unless
>> there simply doesn't exist any format specifications.  as part of the
>> git p2p bittorrent vfs layer stuff, a "file save" operation doesn't
>> "happen by magic": i need to actually verify the pack objects
>> received: count the number of entries?  or do i?
>
> Its in the Documentation/technical subdirectory of git.git[1].
> Look at pack-format.txt.
 star!  thank you.
> Its rather sparse though.
 good enough.
 .... ahh... ah ha!
  - The file is concluded with a trailer:
    A copy of the 20-byte SHA1 checksum at the end of
    corresponding packfile.
    20-byte SHA1-checksum of all of the above.
 i believe that will suffice.

← back to recent threads