Skip to content

Commit d48be35

Browse files
newrengitster
authored andcommitted
write-or-die.h: move declarations for write-or-die.c functions from cache.h
Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 61a7b98 commit d48be35

35 files changed

+114
-77
lines changed

archive-tar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "object-store.h"
1212
#include "streaming.h"
1313
#include "run-command.h"
14+
#include "write-or-die.h"
1415

1516
#define RECORDSIZE (512)
1617
#define BLOCKSIZE (RECORDSIZE * 20)

archive-zip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "utf8.h"
1111
#include "object-store.h"
1212
#include "userdiff.h"
13+
#include "write-or-die.h"
1314
#include "xdiff-interface.h"
1415
#include "date.h"
1516

builtin/blame.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "refs.h"
3434
#include "setup.h"
3535
#include "tag.h"
36+
#include "write-or-die.h"
3637

3738
static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>");
3839
static char annotate_usage[] = N_("git annotate [<options>] [<rev-opts>] [<rev>] [--] <file>");

builtin/cat-file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "replace-object.h"
2424
#include "promisor-remote.h"
2525
#include "mailmap.h"
26+
#include "write-or-die.h"
2627

2728
enum batch_mode {
2829
BATCH_MODE_CONTENTS,

builtin/check-attr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "quote.h"
99
#include "setup.h"
1010
#include "parse-options.h"
11+
#include "write-or-die.h"
1112

1213
static int all_attrs;
1314
static int cached_attrs;

builtin/check-ignore.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "pathspec.h"
99
#include "parse-options.h"
1010
#include "submodule.h"
11+
#include "write-or-die.h"
1112

1213
static int quiet, verbose, stdin_paths, show_non_matching, no_index;
1314
static const char * const check_ignore_usage[] = {

builtin/check-mailmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "mailmap.h"
66
#include "parse-options.h"
77
#include "string-list.h"
8+
#include "write-or-die.h"
89

910
static int use_stdin;
1011
static const char * const check_mailmap_usage[] = {

builtin/credential-cache.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "gettext.h"
33
#include "parse-options.h"
44
#include "wrapper.h"
5+
#include "write-or-die.h"
56

67
#ifndef NO_UNIX_SOCKETS
78

builtin/credential-store.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "credential.h"
66
#include "string-list.h"
77
#include "parse-options.h"
8+
#include "write-or-die.h"
89

910
static struct lock_file credential_lock;
1011

builtin/grep.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "submodule-config.h"
2929
#include "object-store.h"
3030
#include "packfile.h"
31+
#include "write-or-die.h"
3132

3233
static const char *grep_prefix;
3334

0 commit comments

Comments
 (0)