summaryrefslogtreecommitdiffstats
path: root/branch.c
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2023-04-11 05:00:39 +0200
committerJunio C Hamano <gitster@pobox.com>2023-04-11 17:52:09 +0200
commit6c6ddf92d511c423b8b54fb1b01d563b6f4c58f7 (patch)
treee5ba01a4e8c72c4ddd196f3da313617849c62fdb /branch.c
parenttreewide: be explicit about dependence on trace.h & trace2.h (diff)
downloadgit-6c6ddf92d511c423b8b54fb1b01d563b6f4c58f7.tar.xz
git-6c6ddf92d511c423b8b54fb1b01d563b6f4c58f7.zip
treewide: be explicit about dependence on advice.h
Dozens of files made use of advice functions, without explicitly including advice.h. This made it more difficult to find which files could remove a dependence on cache.h. Make C files explicitly include advice.h if they are using it. Signed-off-by: Elijah Newren <newren@gmail.com> Acked-by: Calvin Wan <calvinwan@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'branch.c')
-rw-r--r--branch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/branch.c b/branch.c
index 99a0e7889e..3a087b8b4c 100644
--- a/branch.c
+++ b/branch.c
@@ -1,5 +1,6 @@
#include "git-compat-util.h"
#include "cache.h"
+#include "advice.h"
#include "config.h"
#include "branch.h"
#include "environment.h"