sha function

Get the SHA-1 of a git object