From b9c6962ad5b2f735d8281eb03646cefcf01886de Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 9 Oct 2025 07:46:00 +0000 Subject: [PATCH 1/2] mingw: avoid relative `#include`s We want to make them relative to the top-level directory. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- compat/mingw.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index 8538e3d172..da99473f56 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -1,22 +1,22 @@ #define USE_THE_REPOSITORY_VARIABLE #define DISABLE_SIGN_COMPARE_WARNINGS -#include "../git-compat-util.h" +#include "git-compat-util.h" #include "win32.h" #include #include #include #include -#include "../strbuf.h" -#include "../run-command.h" -#include "../abspath.h" -#include "../alloc.h" +#include "strbuf.h" +#include "run-command.h" +#include "abspath.h" +#include "alloc.h" #include "win32/lazyload.h" -#include "../config.h" -#include "../environment.h" -#include "../trace2.h" -#include "../symlinks.h" -#include "../wrapper.h" +#include "config.h" +#include "environment.h" +#include "trace2.h" +#include "symlinks.h" +#include "wrapper.h" #include "dir.h" #include "gettext.h" #define SECURITY_WIN32 From 15b8abde07de2cbce2dac3630324ead349e168ee Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 9 Oct 2025 07:46:01 +0000 Subject: [PATCH 2/2] mingw: order `#include`s alphabetically It allows for more consistent patches that way. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- compat/mingw.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index da99473f56..736a07a028 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -2,25 +2,25 @@ #define DISABLE_SIGN_COMPARE_WARNINGS #include "git-compat-util.h" -#include "win32.h" -#include -#include -#include -#include -#include "strbuf.h" -#include "run-command.h" #include "abspath.h" #include "alloc.h" -#include "win32/lazyload.h" #include "config.h" -#include "environment.h" -#include "trace2.h" -#include "symlinks.h" -#include "wrapper.h" #include "dir.h" +#include "environment.h" #include "gettext.h" +#include "run-command.h" +#include "strbuf.h" +#include "symlinks.h" +#include "trace2.h" +#include "win32.h" +#include "win32/lazyload.h" +#include "wrapper.h" +#include +#include +#include #define SECURITY_WIN32 #include +#include #include #define STATUS_DELETE_PENDING ((NTSTATUS) 0xC0000056)