Skip to content

Commit 74ea5c9

Browse files
newrengitster
authored andcommitted
treewide: be explicit about dependence on trace.h & trace2.h
Dozens of files made use of trace and trace2 functions, without explicitly including trace.h or trace2.h. This made it more difficult to find which files could remove a dependence on cache.h. Make C files explicitly include trace.h or trace2.h if they are using them. Signed-off-by: Elijah Newren <[email protected]> Acked-by: Calvin Wan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e7dca80 commit 74ea5c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+70
-2
lines changed

blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "hex.h"
1010
#include "setup.h"
1111
#include "tag.h"
12+
#include "trace2.h"
1213
#include "blame.h"
1314
#include "alloc.h"
1415
#include "commit-slab.h"

builtin/checkout.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "setup.h"
2727
#include "submodule.h"
2828
#include "submodule-config.h"
29+
#include "trace2.h"
2930
#include "tree.h"
3031
#include "tree-walk.h"
3132
#include "unpack-trees.h"

builtin/commit-graph.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "progress.h"
1313
#include "replace-object.h"
1414
#include "tag.h"
15+
#include "trace2.h"
1516

1617
#define BUILTIN_COMMIT_GRAPH_VERIFY_USAGE \
1718
N_("git commit-graph verify [--object-dir <dir>] [--shallow] [--[no-]progress]")

builtin/fetch.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#include "promisor-remote.h"
3232
#include "commit-graph.h"
3333
#include "shallow.h"
34+
#include "trace.h"
35+
#include "trace2.h"
3436
#include "worktree.h"
3537
#include "bundle-uri.h"
3638

builtin/fsmonitor--daemon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "simple-ipc.h"
1515
#include "khash.h"
1616
#include "pkt-line.h"
17+
#include "trace2.h"
1718

1819
static const char * const builtin_fsmonitor__daemon_usage[] = {
1920
N_("git fsmonitor--daemon start [<options>]"),

builtin/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "gettext.h"
3838
#include "hook.h"
3939
#include "setup.h"
40+
#include "trace2.h"
4041
#include "wrapper.h"
4142

4243
#define FAILED_RUN "failed to run %s"

builtin/push.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "submodule.h"
1717
#include "submodule-config.h"
1818
#include "send-pack.h"
19+
#include "trace2.h"
1920
#include "color.h"
2021

2122
static const char * const push_usage[] = {

builtin/rebase.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "sequencer.h"
3333
#include "rebase-interactive.h"
3434
#include "reset.h"
35+
#include "trace2.h"
3536
#include "hook.h"
3637
#include "wrapper.h"
3738

builtin/receive-pack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
#include "object-store.h"
3333
#include "protocol.h"
3434
#include "commit-reach.h"
35+
#include "trace.h"
36+
#include "trace2.h"
3537
#include "worktree.h"
3638
#include "shallow.h"
3739
#include "wrapper.h"

builtin/reset.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
#include "setup.h"
3030
#include "submodule.h"
3131
#include "submodule-config.h"
32+
#include "trace.h"
33+
#include "trace2.h"
3234
#include "dir.h"
3335
#include "add-interactive.h"
3436

0 commit comments

Comments
 (0)