diff options
author | Marc Strapetz <marc.strapetz@syntevo.com> | 2022-01-07 11:17:28 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-07 12:37:30 -0800 |
commit | ab6245bdeed46e1ff3bd378690066abd2ed0f2ef (patch) | |
tree | eff4125a81937777d716db8dc841d22d87ba3bb8 /repository.h | |
parent | The sixth batch (diff) | |
download | tgif-ab6245bdeed46e1ff3bd378690066abd2ed0f2ef.tar.xz |
test-lib: introduce API for verifying file mtime
Add functions `test_set_magic_mtime` and `test_is_magic_mtime` which can
be used to (re)set the mtime of a file to a predefined ("magic")
timestamp, then perform some operations and finally check for mtime
changes of the file.
The core implementation follows the suggestion from the
mailing list [1].
[1] https://lore.kernel.org/git/xmqqczl5hpaq.fsf@gitster.g/T/#u
Signed-off-by: Marc Strapetz <marc.strapetz@syntevo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.h')
0 files changed, 0 insertions, 0 deletions