aboutsummaryrefslogtreecommitdiff
path: root/symlinks.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-07 15:04:11 -0700
committerJunio C Hamano <gitster@pobox.com>2012-07-09 14:40:03 -0700
commit099f3c421a446e2eef3a1bb6aea0e451711ddd88 (patch)
tree4b867c8cb14a5d9aa181bc9958cb199544c03b83 /symlinks.c
parente09837e25d50cba97ffcc2934801dbd861e4276d (diff)
downloadgit-099f3c421a446e2eef3a1bb6aea0e451711ddd88.tar.gz
git-099f3c421a446e2eef3a1bb6aea0e451711ddd88.tar.xz
apply: --3way with add/add conflict
When a patch wants to create a path, but we already have it in our current state, pretend as if the patch and we independently added the same path and cause add/add conflict, so that the user can resolve it just like "git merge" in the same situation. For that purpose, implement load_current() in terms of the load_patch_target() helper introduced earlier to read the current contents from the path given by patch->new_name (patch->old_name is NULL for a creation patch). Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'symlinks.c')
0 files changed, 0 insertions, 0 deletions