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

Fallback to git apply --reject if 3 way merge fails to apply #48

Merged
merged 2 commits into from
Aug 16, 2020

Conversation

samj1912
Copy link
Member

If git apply -3 cannot find matching hunks, the entire patch fails to
apply silently. In this case, we re-apply the patch with a reject flag
which succeeds in an update, but creates *.rej files.

Fixes #47

@samj1912
Copy link
Member Author

samj1912 commented Aug 16, 2020

@timothycrosley can you confirm that this works and resolves #47 ? And if it does can you release the new version?

If git apply -3 cannot find matching hunks, the entire patch fails to
apply silently. In this case, we re-apply the patch with a reject flag
which succeeds in an update, but creates *.rej files.
@codecov-commenter
Copy link

Codecov Report

Merging #48 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #48   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           10        10           
  Lines          292       302   +10     
=========================================
+ Hits           292       302   +10     
Impacted Files Coverage Δ
cruft/_commands/update.py 100.00% <100.00%> (ø)
cruft/_version.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65af6e9...26437f9. Read the comment docs.

@timothycrosley
Copy link
Collaborator

Confirmed this worked, great work!

@timothycrosley timothycrosley merged commit 768e8e2 into master Aug 16, 2020
@timothycrosley timothycrosley deleted the git-fallback branch August 16, 2020 08:30
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.

cruft now fails to apply, without providing conflict to manually resolve
3 participants