From: Johannes Schindelin Date: Tue, 23 Oct 2018 10:23:19 +0000 (-0700) Subject: mingw: factor out code to set stat() data X-Git-Tag: v2.20.0-rc0~66^2~2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/7bf198388645995d72073d331fd2bc00243ffea1?hp=7bf198388645995d72073d331fd2bc00243ffea1 mingw: factor out code to set stat() data In our fstat() emulation, we convert the file metadata from Win32 data structures to an emulated POSIX structure. To structure the code better, let's factor that part out into its own function. Note: it would be tempting to try to unify this code with the part of do_lstat() that does the same thing, but they operate on different data structures: BY_HANDLE_FILE_INFORMATION vs WIN32_FILE_ATTRIBUTE_DATA. So unfortunately, they cannot be unified. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano ---