Skip to content

Commit 6404355

Browse files
derrickstoleegitster
authored andcommitted
commit.h: remove method declarations
These methods are now declared in commit-reach.h. Remove them from commit.h and add new include statements in all files that require these declarations. Signed-off-by: Derrick Stolee <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5227c38 commit 6404355

24 files changed

+23
-30
lines changed

bisect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "sha1-array.h"
1414
#include "argv-array.h"
1515
#include "commit-slab.h"
16+
#include "commit-reach.h"
1617

1718
static struct oid_array good_revs;
1819
static struct oid_array skipped_revs;

builtin/branch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "ref-filter.h"
2424
#include "worktree.h"
2525
#include "help.h"
26+
#include "commit-reach.h"
2627

2728
static const char * const builtin_branch_usage[] = {
2829
N_("git branch [<options>] [-r | -a] [--merged | --no-merged]"),

builtin/commit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include "sequencer.h"
3434
#include "mailmap.h"
3535
#include "help.h"
36+
#include "commit-reach.h"
3637

3738
static const char * const builtin_commit_usage[] = {
3839
N_("git commit [<options>] [--] <pathspec>..."),

builtin/fetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "utf8.h"
2323
#include "packfile.h"
2424
#include "list-objects-filter-options.h"
25+
#include "commit-reach.h"
2526

2627
static const char * const builtin_fetch_usage[] = {
2728
N_("git fetch [<options>] [<repository> [<refspec>...]]"),

builtin/fmt-merge-msg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "fmt-merge-msg.h"
1313
#include "gpg-interface.h"
1414
#include "repository.h"
15+
#include "commit-reach.h"
1516

1617
static const char * const fmt_merge_msg_usage[] = {
1718
N_("git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log] [--file <file>]"),

builtin/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "progress.h"
3232
#include "commit-slab.h"
3333
#include "repository.h"
34+
#include "commit-reach.h"
3435

3536
#define MAIL_DEFAULT_WRAP 72
3637

builtin/merge-base.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "revision.h"
88
#include "parse-options.h"
99
#include "repository.h"
10+
#include "commit-reach.h"
1011

1112
static int show_merge_base(struct commit **rev, int rev_nr, int show_all)
1213
{

builtin/merge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "packfile.h"
3737
#include "tag.h"
3838
#include "alias.h"
39+
#include "commit-reach.h"
3940

4041
#define DEFAULT_TWOHEAD (1<<0)
4142
#define DEFAULT_OCTOPUS (1<<1)

builtin/pull.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "tempfile.h"
2323
#include "lockfile.h"
2424
#include "wt-status.h"
25+
#include "commit-reach.h"
2526

2627
enum rebase_type {
2728
REBASE_INVALID = -1,

builtin/receive-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "packfile.h"
2828
#include "object-store.h"
2929
#include "protocol.h"
30+
#include "commit-reach.h"
3031

3132
static const char * const receive_pack_usage[] = {
3233
N_("git receive-pack <git-dir>"),

0 commit comments

Comments
 (0)