is_commit function

Check if object is a git_commit object