Implement unified git_revparse