summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorJan Melcher <info@yogularm.de>2014-03-27 12:42:44 +0100
committerJan Melcher <info@yogularm.de>2014-03-27 12:42:44 +0100
commit2873a862fd1899909424b60b44fa0680851a60f6 (patch)
tree37a3d14c7915f90ea2d7deb7c0ec50c37de2e514 /include/git2/diff.h
parent041fad4aac106650f00b7c445675f1c4bb8cfd53 (diff)
downloadlibgit2-2873a862fd1899909424b60b44fa0680851a60f6.tar.gz
Retry renaming files on Access Denied errors
When a file is open for reading (without shared-delete permission), and then a different thread/process called p_rename, that would fail, even if the file was only open for reading for a few milliseconds. This change lets p_rename wait up to 50ms for the file to be closed by the reader. Applies only to win32. This is especially important for git_filebuf_commit, because writes should not fail if the file is read simultaneously. Fixes #2207
Diffstat (limited to 'include/git2/diff.h')
0 files changed, 0 insertions, 0 deletions