diff options
author | Elijah Newren <newren@gmail.com> | 2023-02-24 01:09:22 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-24 02:25:28 +0100 |
commit | ba3d1c73daa02152acf4729d45ca7fe4d71d5747 (patch) | |
tree | 08150fe2c7c6de264cf3e11bda09f027e79f126f /checkout.h | |
parent | treewide: remove unnecessary git-compat-util.h includes in headers (diff) | |
download | git-ba3d1c73daa02152acf4729d45ca7fe4d71d5747.tar.xz git-ba3d1c73daa02152acf4729d45ca7fe4d71d5747.zip |
treewide: remove unnecessary cache.h includes
We had several header files include cache.h unnecessarily. Remove
those. These have all been verified via both ensuring that
gcc -E $HEADER | grep '"cache.h"'
found no hits and that
cat >temp.c <<EOF &&
#include "git-compat-util.h"
#include "$HEADER"
int main() {}
EOF
gcc -c temp.c
successfully compiles without warnings.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'checkout.h')
-rw-r--r-- | checkout.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/checkout.h b/checkout.h index 1152133bd7..1917f3b323 100644 --- a/checkout.h +++ b/checkout.h @@ -1,7 +1,7 @@ #ifndef CHECKOUT_H #define CHECKOUT_H -#include "cache.h" +#include "hash.h" /* * Check if the branch name uniquely matches a branch name on a remote |