Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
remote: expose parse_push_refspec function
author
Brandon Williams
<bmwill@google.com>
Wed, 5 Apr 2017 17:47:17 +0000
(10:47 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 11 Apr 2017 07:45:22 +0000
(
00:45
-0700)
A future patch needs access to the 'parse_push_refspec()' function so
let's export the function so other modules can use it.
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c
patch
|
blob
|
history
remote.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
2a90556
)
diff --git
a/remote.c
b/remote.c
index 9f83fe2c4cbd477e47fc6c81eab324be7aa088c6..d335a64173b2b19f4ccd25a2613488c59b413aa6 100644
(file)
--- a/
remote.c
+++ b/
remote.c
@@
-630,7
+630,7
@@
struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec)
return parse_refspec_internal(nr_refspec, refspec, 1, 0);
}
return parse_refspec_internal(nr_refspec, refspec, 1, 0);
}
-st
atic st
ruct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
+struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
{
return parse_refspec_internal(nr_refspec, refspec, 0, 0);
}
{
return parse_refspec_internal(nr_refspec, refspec, 0, 0);
}
diff --git
a/remote.h
b/remote.h
index dd8c5175776baabbac2bd735e21bc859fb62a111..42c8f017b7d51204d95e73dd8a7374d87606ab96 100644
(file)
--- a/
remote.h
+++ b/
remote.h
@@
-169,6
+169,7
@@
struct ref *ref_remove_duplicates(struct ref *ref_map);
int valid_fetch_refspec(const char *refspec);
struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec);
int valid_fetch_refspec(const char *refspec);
struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec);
+extern struct refspec *parse_push_refspec(int nr_refspec, const char **refspec);
void free_refspec(int nr_refspec, struct refspec *refspec);
void free_refspec(int nr_refspec, struct refspec *refspec);