From 484ef8b825e5d1d68a61f0f8cc2520457e8f4f3a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 2 Jun 2025 14:45:24 +0200 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 --- compat/mingw.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index 8538e3d1729d25..da99473f56d451 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 5303aa57c4e5aa8e88b4a3d553ff3a69dbe54871 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 2 Jun 2025 14:46:43 +0200 Subject: [PATCH 2/2] mingw: order `#include`s alphabetically It allows for more consistent patches that way. Signed-off-by: Johannes Schindelin --- compat/mingw.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index da99473f56d451..736a07a028ab4d 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 "dir.h" #include "environment.h" -#include "trace2.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 "dir.h" -#include "gettext.h" +#include +#include +#include #define SECURITY_WIN32 #include +#include #include #define STATUS_DELETE_PENDING ((NTSTATUS) 0xC0000056)