summaryrefslogtreecommitdiff
path: root/tests/diff/workdir.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-06-15 14:32:08 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2015-06-16 08:40:45 +0200
commitc4e6ab5f23819c35dc0c1a0fd7f50e5a194f0d5a (patch)
treefb858ad324aa607a9a81013c0a4066518361ba06 /tests/diff/workdir.c
parent316b820b6fed712d4b6fae886ba1e6c44afc6c81 (diff)
downloadlibgit2-c4e6ab5f23819c35dc0c1a0fd7f50e5a194f0d5a.tar.gz
crlf: tick the index forward to work around racy-git behaviour
In order to avoid racy-git, we zero out the file size for entries with the same timestamp as the index (or during the initial checkout). This is the case in a couple of crlf tests, as the code is fast enough to do everything in the same second. As we know that we do not perform the modification just after writing out the index, which is what this is designed to work around, tick the mtime of the index file such that it doesn't agree with the files anymore, and we do not zero out these entries.
Diffstat (limited to 'tests/diff/workdir.c')
0 files changed, 0 insertions, 0 deletions