1
0
mirror of https://github.com/git/git synced 2024-07-05 00:58:49 +00:00
git/remote.h
Daniel Barkalow 6b62816cb1 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>
2007-05-20 21:32:56 -07:00

31 lines
481 B
C

#ifndef REMOTE_H
#define REMOTE_H
struct remote {
const char *name;
const char **uri;
int uri_nr;
const char **push_refspec;
struct refspec *push;
int push_refspec_nr;
const char *receivepack;
};
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