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
{{ message }}
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
go-git has a feature parity with git on checkout. The following is from the git doc:
git checkout <branch>
To prepare for working on <branch>, switch to it by updating the index and the files in the working tree,
and by pointing HEAD at the branch. Local modifications to the files in the working tree are kept, so that
they can be committed to the <branch>.
While in go-git worktree.Checkout(), even if CheckoutOptions.Force is set to false, after checking out the local changes are thrown away. That said, the issue is that worktree.Checkout() doesn't provide an option to keep the local changes.
I suggest introduce a new option field (Keep) for this purpose. A pull request will be created later.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
go-git has a feature parity with git on checkout. The following is from the git doc:
While in go-git worktree.Checkout(), even if CheckoutOptions.Force is set to false, after checking out the local changes are thrown away. That said, the issue is that worktree.Checkout() doesn't provide an option to keep the local changes.
I suggest introduce a new option field (Keep) for this purpose. A pull request will be created later.
The text was updated successfully, but these errors were encountered: