diff options
author | Elijah Newren <newren@gmail.com> | 2023-03-21 06:25:58 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-03-21 17:56:52 (GMT) |
commit | 0b027f6ca79cafbc14f36ff1741fc7378282f295 (patch) | |
tree | 8664359f8aadf94ee7cd79839244198e6cbd78d4 /compat | |
parent | 7ee24e18e55f5459183189a793cb216fb50c20f8 (diff) | |
download | git-0b027f6ca79cafbc14f36ff1741fc7378282f295.zip git-0b027f6ca79cafbc14f36ff1741fc7378282f295.tar.gz git-0b027f6ca79cafbc14f36ff1741fc7378282f295.tar.bz2 |
abspath.h: move absolute path functions from cache.h
This is another step towards letting us remove the include of cache.h in
strbuf.c. It does mean that we also need to add includes of abspath.h
in a number of C files.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r-- | compat/disk.h | 1 | ||||
-rw-r--r-- | compat/mingw.c | 1 | ||||
-rw-r--r-- | compat/simple-ipc/ipc-win32.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/compat/disk.h b/compat/disk.h index a04a8d2..6c979c2 100644 --- a/compat/disk.h +++ b/compat/disk.h @@ -2,6 +2,7 @@ #define COMPAT_DISK_H #include "git-compat-util.h" +#include "abspath.h" #include "gettext.h" static int get_disk_info(struct strbuf *out) diff --git a/compat/mingw.c b/compat/mingw.c index a9e5570..cbcd03a 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -7,6 +7,7 @@ #include "../strbuf.h" #include "../run-command.h" #include "../cache.h" +#include "../abspath.h" #include "../alloc.h" #include "win32/lazyload.h" #include "../config.h" diff --git a/compat/simple-ipc/ipc-win32.c b/compat/simple-ipc/ipc-win32.c index f011e5c..997f614 100644 --- a/compat/simple-ipc/ipc-win32.c +++ b/compat/simple-ipc/ipc-win32.c @@ -1,4 +1,5 @@ #include "cache.h" +#include "abspath.h" #include "gettext.h" #include "simple-ipc.h" #include "strbuf.h" |