diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-07-01 13:42:53 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-11-05 15:53:33 +0000 |
commit | 5b8d5a22e702e4862ebfc56e37d18ca11bfebf02 (patch) | |
tree | 5cce9ba92dbed70e6506a040f07d79cb0208a420 /tests/resources/merge-recursive/.gitted/objects/de | |
parent | 4ff829e96deadcd0d0a11c5d0f3e989cace0056a (diff) | |
download | libgit2-5b8d5a22e702e4862ebfc56e37d18ca11bfebf02.tar.gz |
apply: use preimage as the checkout baseline
Use the preimage as the checkout's baseline. This allows us to support
applying patches to files that are modified in the working directory
(those that differ from the HEAD and index). Without this, files will
be reported as (checkout) conflicts. With this, we expect the on-disk
data when we began the patch application (the "preimage") to be on-disk
during checkout.
We could have also simply used the `FORCE` flag to checkout to
accomplish a similar mechanism. However, `FORCE` ignores all
differences, while providing a preimage ensures that we will only
overwrite the file contents that we actually read.
Modify the reader interface to provide the OID to support this.
Diffstat (limited to 'tests/resources/merge-recursive/.gitted/objects/de')
0 files changed, 0 insertions, 0 deletions