Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2007-05-12 19:45:59 +0400
committerJunio C Hamano <junkio@cox.net>2007-05-21 08:32:56 +0400
commit6b62816cb12e621c5952f088542bec6dfc7ec5d6 (patch)
tree45afa3043e69ded4f02c7f8c65f1f45bad9bf57a /remote.h
parent5751f49010ec54164b93529e31165e71f5996856 (diff)
Move refspec parser from connect.c and cache.h to remote.{c,h}
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/remote.h b/remote.h
index 73747a8054..3bc035b90b 100644
--- a/remote.h
+++ b/remote.h
@@ -8,6 +8,7 @@ struct remote {
int uri_nr;
const char **push_refspec;
+ struct refspec *push;
int push_refspec_nr;
const char *receivepack;
@@ -15,4 +16,15 @@ struct remote {
struct remote *remote_get(const char *name);
+struct refspec {
+ unsigned force : 1;
+ unsigned pattern : 1;
+
+ const char *src;
+ char *dst;
+};
+
+int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
+ int nr_refspec, char **refspec, int all);
+
#endif