# format of git pack objects

3 messages from 2010-08-31 to 2010-08-31. Participants: Luke Kenneth Casson Leighton, Shawn O. Pearce.
Thread: https://gitlist.dev/t/24927

## Luke Kenneth Casson Leighton, 2010-08-31 23:17

Subject: format of git pack objects
Message-ID: <AANLkTimNnUYoBa1VfZeBb=eD=HymOU_h57bthYFC9jUZ@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTimNnUYoBa1VfZeBb%3DeD%3DHymOU_h57bthYFC9jUZ%40mail.gmail.com

```
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, 2010-08-31 23:19

Subject: Re: format of git pack objects
Message-ID: <20100831231947.GH32601@spearce.org>
URL: https://gitlist.dev/e/20100831231947.GH32601%40spearce.org
In-Reply-To: <AANLkTimNnUYoBa1VfZeBb=eD=HymOU_h57bthYFC9jUZ@mail.gmail.com>

```
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.  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, 2010-08-31 23:22

Subject: Re: format of git pack objects
Message-ID: <AANLkTikKavvRb-f0UFF6npQyuPaDHfxEnUFoqNCZNoZ5@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTikKavvRb-f0UFF6npQyuPaDHfxEnUFoqNCZNoZ5%40mail.gmail.com
In-Reply-To: <20100831231947.GH32601@spearce.org>

```
On Wed, Sep 1, 2010 at 12:19 AM, Shawn O. Pearce <spearce@spearce.org> wrote:
> 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.

```
