summaryrefslogtreecommitdiff
path: root/t/t2026-checkout-pathspec-file.sh
diff options
context:
space:
mode:
authorLibravatar Marc Strapetz <marc.strapetz@syntevo.com>2022-01-07 11:17:28 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-07 12:37:30 -0800
commitab6245bdeed46e1ff3bd378690066abd2ed0f2ef (patch)
treeeff4125a81937777d716db8dc841d22d87ba3bb8 /t/t2026-checkout-pathspec-file.sh
parentThe sixth batch (diff)
downloadtgif-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 't/t2026-checkout-pathspec-file.sh')
0 files changed, 0 insertions, 0 deletions