summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2014-01-30 11:30:16 -0800
committerRussell Belfer <rb@github.com>2014-01-30 11:30:16 -0800
commit71ae7601160aca672f2b13a461aab6e4aee7f9d0 (patch)
treec34e101df06ee104c71dc5bdc922e5e8fc76fa66 /include/git2/commit.h
parent0972c59205a0cf29e75b45695cde5dc699983bc0 (diff)
downloadlibgit2-71ae7601160aca672f2b13a461aab6e4aee7f9d0.tar.gz
Force explicit remove of files instead of defer
The checkout code used to defer removal of "blocking" files in checkouts until the blocked item was actually being written (since we have already checked that the removing the block is acceptable according to the update rules). Unfortunately, this resulted in an intermediate index state where both the blocking and new items were in the index which is no longer allowed. Now we just remove the blocking item in the first pass so it never needs to coexist. In cases where there are typechanges, this could result in a bit more churn of removing and recreating intermediate directories, but I'm going to assume that is an unusual case and the churn will not be too costly.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions