How to DEFLATE with a command line tool to extract a git object?

Something like the following will print the raw content, including the “$type $length\0” header:

perl -MCompress::Zlib -e 'undef $/; print uncompress(<>)' \
     < .git/objects/27/de0a1dd5a89a94990618632967a1c86a82d577

Leave a Comment