10 const char **push_refspec
;
14 const char **fetch_refspec
;
15 struct refspec
*fetch
;
18 const char *receivepack
;
19 const char *uploadpack
;
22 struct remote
*remote_get(const char *name
);
24 typedef int each_remote_fn(struct remote
*remote
, void *priv
);
25 int for_each_remote(each_remote_fn fn
, void *priv
);
27 int remote_has_uri(struct remote
*remote
, const char *uri
);
37 struct ref
*alloc_ref(unsigned namelen
);
40 * Frees the entire list and peers of elements.
42 void free_refs(struct ref
*ref
);
44 int match_refs(struct ref
*src
, struct ref
*dst
, struct ref
***dst_tail
,
45 int nr_refspec
, char **refspec
, int all
);
48 * For the given remote, reads the refspec's src and sets the other fields.
50 int remote_find_tracking(struct remote
*remote
, struct refspec
*refspec
);