diff options
author | Elijah Newren <newren@gmail.com> | 2023-03-21 07:26:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-03-21 18:56:54 +0100 |
commit | d48be35ca6f62e1ddd0161f9bbb4c893ee498bfe (patch) | |
tree | 66d12881f4679d03e364693a7bbdecae8ba8fbfe /builtin | |
parent | treewide: remove cache.h inclusion due to setup.h changes (diff) | |
download | git-d48be35ca6f62e1ddd0161f9bbb4c893ee498bfe.tar.xz git-d48be35ca6f62e1ddd0161f9bbb4c893ee498bfe.zip |
write-or-die.h: move declarations for write-or-die.c functions from cache.h
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/blame.c | 1 | ||||
-rw-r--r-- | builtin/cat-file.c | 1 | ||||
-rw-r--r-- | builtin/check-attr.c | 1 | ||||
-rw-r--r-- | builtin/check-ignore.c | 1 | ||||
-rw-r--r-- | builtin/check-mailmap.c | 1 | ||||
-rw-r--r-- | builtin/credential-cache.c | 1 | ||||
-rw-r--r-- | builtin/credential-store.c | 1 | ||||
-rw-r--r-- | builtin/grep.c | 1 | ||||
-rw-r--r-- | builtin/hash-object.c | 1 | ||||
-rw-r--r-- | builtin/log.c | 1 | ||||
-rw-r--r-- | builtin/notes.c | 1 | ||||
-rw-r--r-- | builtin/send-pack.c | 1 | ||||
-rw-r--r-- | builtin/stripspace.c | 1 | ||||
-rw-r--r-- | builtin/tag.c | 1 | ||||
-rw-r--r-- | builtin/update-index.c | 1 |
15 files changed, 15 insertions, 0 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index fb271bae70..0a3cc01905 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -33,6 +33,7 @@ #include "refs.h" #include "setup.h" #include "tag.h" +#include "write-or-die.h" static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>"); static char annotate_usage[] = N_("git annotate [<options>] [<rev-opts>] [<rev>] [--] <file>"); diff --git a/builtin/cat-file.c b/builtin/cat-file.c index 365d9234bd..cf73d18791 100644 --- a/builtin/cat-file.c +++ b/builtin/cat-file.c @@ -23,6 +23,7 @@ #include "replace-object.h" #include "promisor-remote.h" #include "mailmap.h" +#include "write-or-die.h" enum batch_mode { BATCH_MODE_CONTENTS, diff --git a/builtin/check-attr.c b/builtin/check-attr.c index ec37b8164a..1dbe9d6ca8 100644 --- a/builtin/check-attr.c +++ b/builtin/check-attr.c @@ -8,6 +8,7 @@ #include "quote.h" #include "setup.h" #include "parse-options.h" +#include "write-or-die.h" static int all_attrs; static int cached_attrs; diff --git a/builtin/check-ignore.c b/builtin/check-ignore.c index a45d001e35..9401dad007 100644 --- a/builtin/check-ignore.c +++ b/builtin/check-ignore.c @@ -8,6 +8,7 @@ #include "pathspec.h" #include "parse-options.h" #include "submodule.h" +#include "write-or-die.h" static int quiet, verbose, stdin_paths, show_non_matching, no_index; static const char * const check_ignore_usage[] = { diff --git a/builtin/check-mailmap.c b/builtin/check-mailmap.c index fa86fd9423..002d2941e9 100644 --- a/builtin/check-mailmap.c +++ b/builtin/check-mailmap.c @@ -5,6 +5,7 @@ #include "mailmap.h" #include "parse-options.h" #include "string-list.h" +#include "write-or-die.h" static int use_stdin; static const char * const check_mailmap_usage[] = { diff --git a/builtin/credential-cache.c b/builtin/credential-cache.c index af56a44923..508da4c6e4 100644 --- a/builtin/credential-cache.c +++ b/builtin/credential-cache.c @@ -2,6 +2,7 @@ #include "gettext.h" #include "parse-options.h" #include "wrapper.h" +#include "write-or-die.h" #ifndef NO_UNIX_SOCKETS diff --git a/builtin/credential-store.c b/builtin/credential-store.c index da32cfd89e..8977604eb9 100644 --- a/builtin/credential-store.c +++ b/builtin/credential-store.c @@ -5,6 +5,7 @@ #include "credential.h" #include "string-list.h" #include "parse-options.h" +#include "write-or-die.h" static struct lock_file credential_lock; diff --git a/builtin/grep.c b/builtin/grep.c index b8ebf014f4..d858bf0bea 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -28,6 +28,7 @@ #include "submodule-config.h" #include "object-store.h" #include "packfile.h" +#include "write-or-die.h" static const char *grep_prefix; diff --git a/builtin/hash-object.c b/builtin/hash-object.c index a2e160db02..a15fe4fd3f 100644 --- a/builtin/hash-object.c +++ b/builtin/hash-object.c @@ -15,6 +15,7 @@ #include "parse-options.h" #include "exec-cmd.h" #include "setup.h" +#include "write-or-die.h" /* * This is to create corrupt objects for debugging and as such it diff --git a/builtin/log.c b/builtin/log.c index 1b92dee196..b28a24c309 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -40,6 +40,7 @@ #include "commit-reach.h" #include "range-diff.h" #include "tmp-objdir.h" +#include "write-or-die.h" #define MAIL_DEFAULT_WRAP 72 #define COVER_FROM_AUTO_MAX_SUBJECT_LEN 100 diff --git a/builtin/notes.c b/builtin/notes.c index 8e9be33ddb..26cbb564a8 100644 --- a/builtin/notes.c +++ b/builtin/notes.c @@ -25,6 +25,7 @@ #include "notes-merge.h" #include "notes-utils.h" #include "worktree.h" +#include "write-or-die.h" static const char * const git_notes_usage[] = { N_("git notes [--ref <notes-ref>] [list [<object>]]"), diff --git a/builtin/send-pack.c b/builtin/send-pack.c index fb5b2bad2c..2b360fee42 100644 --- a/builtin/send-pack.c +++ b/builtin/send-pack.c @@ -16,6 +16,7 @@ #include "gpg-interface.h" #include "gettext.h" #include "protocol.h" +#include "write-or-die.h" static const char * const send_pack_usage[] = { N_("git send-pack [--mirror] [--dry-run] [--force]\n" diff --git a/builtin/stripspace.c b/builtin/stripspace.c index 53930458ff..9451eb69ff 100644 --- a/builtin/stripspace.c +++ b/builtin/stripspace.c @@ -5,6 +5,7 @@ #include "parse-options.h" #include "setup.h" #include "strbuf.h" +#include "write-or-die.h" static void comment_lines(struct strbuf *buf) { diff --git a/builtin/tag.c b/builtin/tag.c index 0611b3bd60..531631a36c 100644 --- a/builtin/tag.c +++ b/builtin/tag.c @@ -24,6 +24,7 @@ #include "column.h" #include "ref-filter.h" #include "date.h" +#include "write-or-die.h" static const char * const git_tag_usage[] = { N_("git tag [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>] [-e]\n" diff --git a/builtin/update-index.c b/builtin/update-index.c index f97f8d4c9d..03cda5e60d 100644 --- a/builtin/update-index.c +++ b/builtin/update-index.c @@ -23,6 +23,7 @@ #include "setup.h" #include "split-index.h" #include "fsmonitor.h" +#include "write-or-die.h" /* * Default to not allowing changes to the list of files. The |