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 <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Elijah Newren 2023-12-23 17:14:56 +00:00 committed by Junio C Hamano
parent a28fe2d901
commit 545f7b50e8
3 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include "gettext.h"
#include "hex.h"
#include "run-command.h"
#include "sideband.h"
#include "trace.h"
#include "write-or-die.h"


View File

@ -2,7 +2,6 @@
#define PKTLINE_H

#include "strbuf.h"
#include "sideband.h"

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

View File

@ -1,6 +1,7 @@
#include "git-compat-util.h"
#include "test-tool.h"
#include "pkt-line.h"
#include "sideband.h"
#include "write-or-die.h"

static void pack_line(const char *line)