Look at
itIt is raw compressed data using zlibzlib. One can use 'zpipe'zpipe
from the 'zlib1g-dev' package. Compile (compile the examplethe example with 'gcc -o zpipe zpipe.c -lz')gcc -o zpipe zpipe.c -lz
. It is not a standard .gz.gz
or something.
$ ./zpipe -d < .git/objects/02/43019ddb4d94114e5a8580eec01baeea195133
./zpipe -d < .git/objects/02/43019ddb4d94114e5a8580eec01baeea195133
prints the content of the blob (header+data)
If you want to check the shaSHA-1, you have to put the uncompressed blob in a file (myblobmyblob
) and do
$ sha1sum myblob
sha1sum myblob