Gets the commit ID that the given git_annotated_commit refers to.
git_annotated_commit
the given annotated commit
commit id