summaryrefslogtreecommitdiffstats
path: root/diagnose.c
diff options
context:
space:
mode:
authorVictoria Dye <vdye@github.com>2022-08-12 22:10:12 +0200
committerJunio C Hamano <gitster@pobox.com>2022-08-12 22:20:02 +0200
commit435a2535b72aa0e3a2e152841fe79c5b65a6e8c0 (patch)
tree7acc88bfd6e015d30cb68cd68e12b17a96039558 /diagnose.c
parentscalar-diagnose: add directory to archiver more gently (diff)
downloadgit-435a2535b72aa0e3a2e152841fe79c5b65a6e8c0.tar.xz
git-435a2535b72aa0e3a2e152841fe79c5b65a6e8c0.zip
scalar-diagnose: move 'get_disk_info()' to 'compat/'
Move 'get_disk_info()' function into 'compat/'. Although Scalar-specific code is generally not part of the main Git tree, 'get_disk_info()' will be used in subsequent patches by additional callers beyond 'scalar diagnose'. This patch prepares for that change, at which point this platform-specific code should be part of 'compat/' as a matter of convention. The function is copied *mostly* verbatim, with two exceptions: * '#ifdef WIN32' is replaced with '#ifdef GIT_WINDOWS_NATIVE' to allow 'statvfs' to be used with Cygwin. * the 'struct strbuf buf' and 'int res' (as well as their corresponding cleanup & return) are moved outside of the '#ifdef' block. Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diagnose.c')
0 files changed, 0 insertions, 0 deletions