cat "object" | ruby -rzlib -e 'puts Zlib.inflate(ARGF.read)' を使う.
/usr/local/bin/inflate
#!/bin/zsh if [ $# -ne 1 ]; then echo "Usage: inflate <zlib object>" exit 1 fi cat $@ | ruby -rzlib -e 'puts Zlib.inflate(ARGF.read)'
別の方法
.git/objects/a0/d74d48d61f95a874e30f8fb71bbd68506d0f6eのとき,
$ git cat-file -t a0d74 $ git cat-file -s a0d74 $ git cat-file -p a0d74 $ git show a0d74