Skip to content

Commit

Permalink
object-name.h: move declarations for object-name.c functions from cac…
Browse files Browse the repository at this point in the history
…he.h

Signed-off-by: Elijah Newren <[email protected]>
Acked-by: Calvin Wan <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
newren authored and gitster committed Apr 11, 2023
1 parent 5579f44 commit dabab1d
Show file tree
Hide file tree
Showing 91 changed files with 210 additions and 110 deletions.
1 change: 1 addition & 0 deletions add-patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "alloc.h"
#include "environment.h"
#include "gettext.h"
#include "object-name.h"
#include "strbuf.h"
#include "run-command.h"
#include "strvec.h"
Expand Down
1 change: 1 addition & 0 deletions apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "xdiff-interface.h"
#include "ll-merge.h"
#include "lockfile.h"
#include "object-name.h"
#include "parse-options.h"
#include "quote.h"
#include "rerere.h"
Expand Down
1 change: 1 addition & 0 deletions archive.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define ARCHIVE_H

#include "cache.h"
#include "object-name.h"
#include "pathspec.h"

struct repository;
Expand Down
1 change: 1 addition & 0 deletions bisect.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "strvec.h"
#include "commit-slab.h"
#include "commit-reach.h"
#include "object-name.h"
#include "object-store.h"
#include "dir.h"

Expand Down
1 change: 1 addition & 0 deletions branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "refs.h"
#include "refspec.h"
#include "remote.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/am.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "diffcore.h"
#include "unpack-trees.h"
#include "branch.h"
#include "object-name.h"
#include "sequencer.h"
#include "revision.h"
#include "merge-recursive.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/bisect.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "parse-options.h"
#include "bisect.h"
#include "refs.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/blame.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include "line-log.h"
#include "dir.h"
#include "progress.h"
#include "object-name.h"
#include "object-store.h"
#include "blame.h"
#include "refs.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "commit.h"
#include "builtin.h"
#include "gettext.h"
#include "object-name.h"
#include "remote.h"
#include "parse-options.h"
#include "branch.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/cat-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "tree-walk.h"
#include "oid-array.h"
#include "packfile.h"
#include "object-name.h"
#include "object-store.h"
#include "replace-object.h"
#include "promisor-remote.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/check-attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "attr.h"
#include "environment.h"
#include "gettext.h"
#include "object-name.h"
#include "quote.h"
#include "setup.h"
#include "parse-options.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "lockfile.h"
#include "mem-pool.h"
#include "merge-recursive.h"
#include "object-name.h"
#include "object-store.h"
#include "parse-options.h"
#include "refs.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/commit-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "object-store.h"
#include "repository.h"
#include "commit.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "log-tree.h"
#include "strbuf.h"
#include "utf8.h"
#include "object-name.h"
#include "parse-options.h"
#include "string-list.h"
#include "rerere.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/describe.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "refs.h"
#include "builtin.h"
#include "exec-cmd.h"
#include "object-name.h"
#include "parse-options.h"
#include "revision.h"
#include "diff.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/fast-import.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "dir.h"
#include "run-command.h"
#include "packfile.h"
#include "object-name.h"
#include "object-store.h"
#include "mem-pool.h"
#include "commit-reach.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "repository.h"
#include "refs.h"
#include "refspec.h"
#include "object-name.h"
#include "object-store.h"
#include "oidset.h"
#include "oid-array.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/fsck.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "streaming.h"
#include "decorate.h"
#include "packfile.h"
#include "object-name.h"
#include "object-store.h"
#include "replace-object.h"
#include "resolve-undo.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/grep.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "setup.h"
#include "submodule.h"
#include "submodule-config.h"
#include "object-name.h"
#include "object-store.h"
#include "packfile.h"
#include "write-or-die.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "object-name.h"
#include "object-store.h"
#include "color.h"
#include "commit.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/ls-files.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "dir.h"
#include "builtin.h"
#include "gettext.h"
#include "object-name.h"
#include "strbuf.h"
#include "tree.h"
#include "cache-tree.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/ls-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "object-store.h"
#include "blob.h"
#include "tree.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/merge-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "refs.h"
#include "diff.h"
#include "revision.h"
#include "object-name.h"
#include "parse-options.h"
#include "repository.h"
#include "commit-reach.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/merge-recursive.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "gettext.h"
#include "tag.h"
#include "merge-recursive.h"
#include "object-name.h"
#include "xdiff-interface.h"

static const char builtin_merge_recursive_usage[] =
Expand Down
1 change: 1 addition & 0 deletions builtin/merge-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "commit.h"
#include "commit-reach.h"
#include "merge-ort.h"
#include "object-name.h"
#include "object-store.h"
#include "parse-options.h"
#include "repository.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/merge.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "parse-options.h"
#include "builtin.h"
#include "lockfile.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/name-rev.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "commit.h"
#include "tag.h"
#include "refs.h"
#include "object-name.h"
#include "parse-options.h"
#include "prio-queue.h"
#include "hash-lookup.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/notes.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "gettext.h"
#include "hex.h"
#include "notes.h"
#include "object-name.h"
#include "object-store.h"
#include "repository.h"
#include "blob.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/prune.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "progress.h"
#include "prune-packed.h"
#include "replace-object.h"
#include "object-name.h"
#include "object-store.h"
#include "shallow.h"

Expand Down
1 change: 1 addition & 0 deletions builtin/pull.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "builtin.h"
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "parse-options.h"
#include "exec-cmd.h"
#include "run-command.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/range-diff.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "object-name.h"
#include "parse-options.h"
#include "range-diff.h"
#include "config.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/read-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "hex.h"
#include "lockfile.h"
#include "object.h"
#include "object-name.h"
#include "tree.h"
#include "tree-walk.h"
#include "cache-tree.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/rebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "cache-tree.h"
#include "unpack-trees.h"
#include "lockfile.h"
#include "object-name.h"
#include "parse-options.h"
#include "commit.h"
#include "diff.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/receive-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "tmp-objdir.h"
#include "oidset.h"
#include "packfile.h"
#include "object-name.h"
#include "object-store.h"
#include "protocol.h"
#include "commit-reach.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/replace.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "refs.h"
#include "parse-options.h"
#include "run-command.h"
#include "object-name.h"
#include "object-store.h"
#include "replace-object.h"
#include "repository.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "diffcore.h"
#include "tree.h"
#include "branch.h"
#include "object-name.h"
#include "parse-options.h"
#include "unpack-trees.h"
#include "cache-tree.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/rev-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "list-objects-filter.h"
#include "list-objects-filter-options.h"
#include "object.h"
#include "object-name.h"
#include "object-store.h"
#include "pack.h"
#include "pack-bitmap.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/rev-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "refs.h"
#include "quote.h"
#include "builtin.h"
#include "object-name.h"
#include "parse-options.h"
#include "diff.h"
#include "revision.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/rm.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "cache-tree.h"
#include "gettext.h"
#include "tree-walk.h"
#include "object-name.h"
#include "parse-options.h"
#include "string-list.h"
#include "setup.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/show-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "builtin.h"
#include "color.h"
#include "strvec.h"
#include "object-name.h"
#include "parse-options.h"
#include "dir.h"
#include "commit-slab.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/show-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "object-name.h"
#include "object-store.h"
#include "object.h"
#include "tag.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/sparse-checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "object-name.h"
#include "parse-options.h"
#include "pathspec.h"
#include "repository.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/stash.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "parse-options.h"
#include "refs.h"
#include "lockfile.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/submodule--helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "revision.h"
#include "diffcore.h"
#include "diff.h"
#include "object-name.h"
#include "object-store.h"
#include "advice.h"
#include "branch.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "object-name.h"
#include "object-store.h"
#include "tag.h"
#include "run-command.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/unpack-file.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "builtin.h"
#include "config.h"
#include "hex.h"
#include "object-name.h"
#include "object-store.h"
#include "wrapper.h"

Expand Down
1 change: 1 addition & 0 deletions builtin/update-ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "gettext.h"
#include "refs.h"
#include "builtin.h"
#include "object-name.h"
#include "parse-options.h"
#include "quote.h"
#include "strvec.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/verify-commit.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "config.h"
#include "builtin.h"
#include "gettext.h"
#include "object-name.h"
#include "object-store.h"
#include "repository.h"
#include "commit.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/verify-tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "gettext.h"
#include "tag.h"
#include "run-command.h"
#include "object-name.h"
#include "parse-options.h"
#include "gpg-interface.h"
#include "ref-filter.h"
Expand Down
1 change: 1 addition & 0 deletions builtin/worktree.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "parse-options.h"
#include "strvec.h"
#include "branch.h"
Expand Down
Loading

0 comments on commit dabab1d

Please sign in to comment.