You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this is not the correct mechanism used to switch branches; 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 using git_repository_set_head to point to the branch you checked out.
This should be translated to make sense with the rust api and included.
In my usecase git_checkout_head was doing literally nothing and it was very confusing.
The text was updated successfully, but these errors were encountered:
vcfxb
added a commit
to vcfxb/git2-rs
that referenced
this issue
Mar 25, 2025
git_checkout_head has the following disclaimer:
This should be translated to make sense with the rust api and included.
In my usecase
git_checkout_head
was doing literally nothing and it was very confusing.The text was updated successfully, but these errors were encountered: