$ (printf “commit %s\0” $(git cat-file commit HEAD | wc -c); git cat-file commit HEAD) | sha1sum |
https://gist.github.com/masak/2415865
$ (printf “commit %s\0” $(git cat-file commit HEAD | wc -c); git cat-file commit HEAD) | sha1sum |
https://gist.github.com/masak/2415865