Skip to content

Commit 545f7b5

Browse files
newrengitster
authored andcommitted
pkt-line.h: remove unnecessary include
The unnecessary include in the header transitively pulled in some other headers actually needed by source files, though. Have those source files explicitly include the headers they need. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a28fe2d commit 545f7b5

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

pkt-line.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "gettext.h"
55
#include "hex.h"
66
#include "run-command.h"
7+
#include "sideband.h"
78
#include "trace.h"
89
#include "write-or-die.h"
910

pkt-line.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#define PKTLINE_H
33

44
#include "strbuf.h"
5-
#include "sideband.h"
65

76
/*
87
* Write a packetized stream, where each line is preceded by

t/helper/test-pkt-line.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "git-compat-util.h"
22
#include "test-tool.h"
33
#include "pkt-line.h"
4+
#include "sideband.h"
45
#include "write-or-die.h"
56

67
static void pack_line(const char *line)

0 commit comments

Comments
 (0)