diff: add failing test for racy-git in the index
We update the index and then immediately change the contents of the file. This makes the diff think there are no changes, as the timestamp of the file agrees with the cached data. This is however a bug, as the file has obviously changed contents. The test is a bit fragile, as it assumes that the index writing and the following modification of the file happen in the same second, but it's enough to show the issue.
Showing
tests/diff/racy.c
0 → 100644
Please
register
or
sign in
to comment