treewide: be explicit about dependence on strbuf.h
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Elijah Newren committed
Apr 22, 2023 at 20:17 UTC
69a63fe663874716d2b5bf49b90c550f8279358e
13 files changed
+13
color.c
+1
@@ -5,6 +5,7 @@
5
#include "gettext.h"
6
#include "hex.h"
7
#include "pager.h"
8
+#include "strbuf.h"
9
10
static int git_use_color_default = GIT_COLOR_AUTO;
11
int color_stdout_is_tty = -1;
common-main.c
+1
@@ -3,6 +3,7 @@
3
#include "gettext.h"
4
#include "attr.h"
5
#include "setup.h"
6
+#include "strbuf.h"
7
#include "trace2.h"
8
9
/*
credential.c
+1
@@ -8,6 +8,7 @@
8
#include "url.h"
9
#include "prompt.h"
10
#include "sigchain.h"
11
+#include "strbuf.h"
12
#include "urlmatch.h"
13
#include "git-compat-util.h"
14
date.c
+1
@@ -8,6 +8,7 @@
8
#include "date.h"
9
#include "gettext.h"
10
#include "pager.h"
11
+#include "strbuf.h"
12
13
/*
14
* This is like mktime, but without normalization of tm_wday and tm_yday.
ll-merge.c
+1
@@ -12,6 +12,7 @@
12
#include "run-command.h"
13
#include "ll-merge.h"
14
#include "quote.h"
15
+#include "strbuf.h"
16
#include "wrapper.h"
17
18
struct ll_merge_driver;
split-index.c
+1
@@ -3,6 +3,7 @@
3
#include "gettext.h"
4
#include "mem-pool.h"
5
#include "split-index.h"
6
+#include "strbuf.h"
7
#include "ewah/ewok.h"
8
9
struct split_index *init_split_index(struct index_state *istate)
t/helper/test-mergesort.c
+1
@@ -2,6 +2,7 @@
2
#include "cache.h"
3
#include "mem-pool.h"
4
#include "mergesort.h"
5
+#include "strbuf.h"
6
7
static uint32_t minstd_rand(uint32_t *state)
8
{
t/helper/test-oid-array.c
+1
@@ -3,6 +3,7 @@
3
#include "hex.h"
4
#include "oid-array.h"
5
#include "setup.h"
6
+#include "strbuf.h"
7
8
static int print_oid(const struct object_id *oid, void *data)
9
{
t/helper/test-oidtree.c
+1
@@ -3,6 +3,7 @@
3
#include "hex.h"
4
#include "oidtree.h"
5
#include "setup.h"
6
+#include "strbuf.h"
7
8
static enum cb_next print_oid(const struct object_id *oid, void *data)
9
{
t/helper/test-parse-options.c
+1
@@ -1,6 +1,7 @@
1
#include "test-tool.h"
2
#include "cache.h"
3
#include "parse-options.h"
4
+#include "strbuf.h"
5
#include "string-list.h"
6
#include "trace2.h"
7
t/helper/test-string-list.c
+1
@@ -1,5 +1,6 @@
1
#include "test-tool.h"
2
#include "cache.h"
3
+#include "strbuf.h"
4
#include "string-list.h"
5
6
/*
wrapper.c
+1
@@ -5,6 +5,7 @@
5
#include "abspath.h"
6
#include "config.h"
7
#include "gettext.h"
8
+#include "strbuf.h"
9
#include "trace2.h"
10
#include "wrapper.h"
11
ws.c
+1
@@ -5,6 +5,7 @@
5
*/
6
#include "cache.h"
7
#include "attr.h"
8
+#include "strbuf.h"
9
10
static struct whitespace_rule {
11
const char *rule_name;