diff: switch GIT_SHA1_HEXSZ to use the_hash_algo