compat/cygwin.c - Use cygwin's stat if core.filemode == true
authorMark Levedahl <mlevedahl@gmail.com>
Mon, 13 Oct 2008 04:33:31 +0000 (00:33 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Oct 2008 20:43:24 +0000 (13:43 -0700)
commit7faee6b8de836904227ee98dc3d2c4c75b0ef3a1
treea5522684e7f80e160b58b72f20861097839098bd
parent5c283eb13c94be6ca974aa722159dc9838d10d97
compat/cygwin.c - Use cygwin's stat if core.filemode == true

Cygwin's POSIX emulation allows use of core.filemode true, unlike native
Window's implementation of stat / lstat, and Cygwin/git users who have
configured core.filemode true in various repositories will be very
unpleasantly surprised to find that git is no longer honoring that option.
So, this patch forces use of Cygwin's stat functions if core.filemode is
set true, regardless of any other considerations.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
compat/cygwin.c