diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-10-23 22:54:09 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-28 09:12:49 -0700 |
commit | 797484392a823c66bd846545a43d76aa2c64f5ff (patch) | |
tree | bc9a647d52154bf619843ebc3633d4bf6275fed1 /t/t4013/diff.diff-tree_--pretty_--root_--stat_--summary_initial | |
parent | Merge branch 'maint' (diff) | |
download | tgif-797484392a823c66bd846545a43d76aa2c64f5ff.tar.xz |
compat/cygwin.c: make runtime detection of lstat/stat lessor impact
The original patch that lead to an earlier commit adbc0b6 (cygwin: Use
native Win32 API for stat, 2008-09-30) did not call git_default_config()
and it was a good thing. The lazy config reading when lstat/stat is
called for the first time to find out if core.filemode is set can happen
anytime in the calling program. If it happens after the calling program
parsed the configuration file to prime its default parameter settings and
processed its command line parameters to tweak them, this will overwrite
the values set by the program with the values read from the config file.
This essentially reverts the code to the version as submitted by Mark,
with a bit more comments to clarify why we do not fall back on the default
configuration parser from git_cygwin_config().
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff-tree_--pretty_--root_--stat_--summary_initial')
0 files changed, 0 insertions, 0 deletions