Skip to content

Commit ec0cb49

Browse files
bmwillgitster
authored andcommitted
refspec: move refspec parsing logic into its own file
In preparation for performing a refactor on refspec related code, move the refspec parsing logic into its own file. Signed-off-by: Brandon Williams <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ccdcbd5 commit ec0cb49

17 files changed

+204
-184
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,7 @@ LIB_OBJS += refs/files-backend.o
928928
LIB_OBJS += refs/iterator.o
929929
LIB_OBJS += refs/packed-backend.o
930930
LIB_OBJS += refs/ref-cache.o
931+
LIB_OBJS += refspec.o
931932
LIB_OBJS += ref-filter.o
932933
LIB_OBJS += remote.o
933934
LIB_OBJS += replace-object.o

branch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "config.h"
44
#include "branch.h"
55
#include "refs.h"
6+
#include "refspec.h"
67
#include "remote.h"
78
#include "commit.h"
89
#include "worktree.h"

builtin/clone.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "parse-options.h"
1515
#include "fetch-pack.h"
1616
#include "refs.h"
17+
#include "refspec.h"
1718
#include "tree.h"
1819
#include "tree-walk.h"
1920
#include "unpack-trees.h"

builtin/fast-export.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "cache.h"
88
#include "config.h"
99
#include "refs.h"
10+
#include "refspec.h"
1011
#include "commit.h"
1112
#include "object.h"
1213
#include "tag.h"

builtin/fetch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "config.h"
66
#include "repository.h"
77
#include "refs.h"
8+
#include "refspec.h"
89
#include "commit.h"
910
#include "builtin.h"
1011
#include "string-list.h"

builtin/merge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "run-command.h"
1515
#include "diff.h"
1616
#include "refs.h"
17+
#include "refspec.h"
1718
#include "commit.h"
1819
#include "diffcore.h"
1920
#include "revision.h"

builtin/pull.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "remote.h"
1616
#include "dir.h"
1717
#include "refs.h"
18+
#include "refspec.h"
1819
#include "revision.h"
1920
#include "submodule.h"
2021
#include "submodule-config.h"

builtin/push.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include "cache.h"
55
#include "config.h"
66
#include "refs.h"
7+
#include "refspec.h"
78
#include "run-command.h"
89
#include "builtin.h"
910
#include "remote.h"

builtin/remote.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "strbuf.h"
88
#include "run-command.h"
99
#include "refs.h"
10+
#include "refspec.h"
1011
#include "argv-array.h"
1112

1213
static const char * const builtin_remote_usage[] = {

builtin/submodule--helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "run-command.h"
1313
#include "remote.h"
1414
#include "refs.h"
15+
#include "refspec.h"
1516
#include "connect.h"
1617
#include "revision.h"
1718
#include "diffcore.h"

0 commit comments

Comments
 (0)