mingw: implement nanosecond-precision file times
commitd7e8c87421868ab7dab2814360d277a425b42bc5
authorKarsten Blees <blees@dcon.de>
Tue, 23 Oct 2018 10:23:22 +0000 (23 03:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Oct 2018 04:18:14 +0000 (24 13:18 +0900)
treef4c6b73fac6102498c3758c7e20424b387de0c2b
parentd75e6973539f1f99561ae6f42a81f024497e3dfa
mingw: implement nanosecond-precision file times

We no longer use any of MSVCRT's stat-functions, so there's no need to
stick to a CRT-compatible 'struct stat' either.

Define and use our own POSIX-2013-compatible 'struct stat' with nanosecond-
precision file times.

Note: This can cause performance issues when using Git variants with
different file time resolutions, as the timestamps are stored in the Git
index: after updating the index with a Git variant that uses
second-precision file times, a nanosecond-aware Git will think that
pretty much every single file listed in the index is out of date.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c
compat/mingw.h
config.mak.uname