| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| * do not change your `HEAD` and then call this method, that would leave | ||
| * you with checkout conflicts since your working directory would then | ||
| * appear to be dirty. Instead, checkout the target of the branch and | ||
| * then update `HEAD` if that was successful. |
There was a problem hiding this comment.
Should we mention git_repository_set_head() here, as that's the convenient way we offer to switch the active branch?
Sorry, something went wrong.
There was a problem hiding this comment.
Updated to mention git_repository_set_head.
Sorry, something went wrong.
`git_checkout_head` is sadly misunderstood as something that can switch branches. It cannot. Update the documentation to reflect this.
| Back | FazBrowse Home | New Git URL |
git_checkout_head is sadly misunderstood as something that can
switch branches. It cannot. Update the documentation to reflect this.
Fixes #2864