-
Notifications
You must be signed in to change notification settings - Fork 2.5k
git_stash_pop() and git_stash_apply() #1447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
These functions can't be implemented until merge support is in. What you're doing with |
It would be awesome to use libgit2 for this. Right now, we're shelling out to |
I added a workaround implementation for |
Closed now that we have some pull requests like #2636 ...! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As far as I can tell git_stash_save() does the following:
commit_index()
commit_untracked()
commit_worktree()
- that will be returned; set previous three commits (base, index, untracked in this order) as parents for this oneupdate_reflog()
that points to oid of the commit in previous stepBased on the model of
git_stash_drop()
I suggest this implementation tested with a repository created as follows:This fails to restore untracked files:
The text was updated successfully, but these errors were encountered: