File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2065,12 +2065,12 @@ impl Repository {
2065
2065
2066
2066
/// Updates files in the index and the working tree to match the content of
2067
2067
/// the commit pointed at by HEAD.
2068
- ///
2068
+ ///
2069
2069
/// Make sure you're aware of the potentially confusing semantics of this function, as described
2070
- /// by the libgit2 documentation for the underlying libgit2 function:
2070
+ /// by the libgit2 documentation for the underlying libgit2 function:
2071
2071
/// <https://libgit2.org/docs/reference/main/checkout/git_checkout_head.html>.
2072
- ///
2073
- /// Notably, this should not be used for switching branches. For that you should checkout the target of the
2072
+ ///
2073
+ /// Notably, this should not be used for switching branches. For that you should checkout the target of the
2074
2074
/// desired branch and then use [Repository::set_head] to update HEAD to point to the checked-out branch.
2075
2075
pub fn checkout_head ( & self , opts : Option < & mut CheckoutBuilder < ' _ > > ) -> Result < ( ) , Error > {
2076
2076
unsafe {
You can’t perform that action at this time.
0 commit comments