Yes. But `git_commit_free()` expects a `git_commit *`. So you'd either have to cast the `git_revparse` call or the call to `git_commit_free`.

I see the current code as the lesser of two evils ;-)