Skip to content
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

stash apply: support reinstate_index and skip_conflicts #101

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

pmrowla
Copy link
Contributor

@pmrowla pmrowla commented Jun 17, 2022

Adds support for --index and force-applying in stash apply

prereq for iterative/dvc#6930

@pmrowla pmrowla self-assigned this Jun 17, 2022
Comment on lines +483 to +484
if skip_conflicts:
strategy |= GIT_CHECKOUT_ALLOW_CONFLICTS
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this is pygit specific right now because there is no CGit git stash apply flag that gives this equivalent behavior.

libgit2 provides it since it's useful for programmatic reasons (where you need to automate everything vs being able to do interactive 3-way merge conflict resolutions with CLI git)

@pmrowla pmrowla merged commit 3e2c69f into iterative:main Jun 17, 2022
@pmrowla pmrowla deleted the stash-improvements branch January 31, 2023 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant