]> git.proxmox.com Git - libgit2.git/commit
diff: check files with the same or newer timestamps
authorCarlos Martín Nieto <cmn@dwim.me>
Wed, 17 Jun 2015 12:34:10 +0000 (14:34 +0200)
committerCarlos Martín Nieto <cmn@dwim.me>
Mon, 22 Jun 2015 10:47:30 +0000 (12:47 +0200)
commitff47537557f0ac1919e77c5cb21f36f2e98425de
treeb7164edbbc40fcdea677c1d178c1052e7b197ef0
parente96a97f18e8f961c434e4fa4fc2c7d950480b9e9
diff: check files with the same or newer timestamps

When a file on the workdir has the same or a newer timestamp than the
index, we need to perform a full check of the contents, as the update of
the file may have happened just after we wrote the index.

The iterator changes are such that we can reach inside the workdir
iterator from the diff, though it may be better to have an accessor
instead of moving these structs into the header.
src/diff.c
src/iterator.c
src/iterator.h
tests/diff/racy.c
tests/diff/workdir.c
tests/status/worktree.c