Thanks! I was able to abstract this out into a single function for both checkout types: `int branch_checkout(git_repository *repo, const char *refName)`