10 const char **push_refspec;
14 const char **fetch_refspec;
15 struct refspec *fetch;
19 * -1 to never fetch tags
20 * 0 to auto-follow tags on heuristic (default)
21 * 1 to always auto-follow tags
22 * 2 to always fetch tags
26 const char *receivepack;
27 const char *uploadpack;
30 struct remote *remote_get(const char *name);
32 typedef int each_remote_fn(struct remote *remote, void *priv);
33 int for_each_remote(each_remote_fn fn, void *priv);
35 int remote_has_url(struct remote *remote, const char *url);
45 struct ref *alloc_ref(unsigned namelen);
48 * Frees the entire list and peers of elements.
50 void free_refs(struct ref *ref);
53 * Removes and frees any duplicate refs in the map.
55 void ref_remove_duplicates(struct ref *ref_map);
57 struct refspec *parse_ref_spec(int nr_refspec, const char **refspec);
59 int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
60 int nr_refspec, char **refspec, int all);
63 * Given a list of the remote refs and the specification of things to
64 * fetch, makes a (separate) list of the refs to fetch and the local
67 * *tail is the pointer to the tail pointer of the list of results
68 * beforehand, and will be set to the tail pointer of the list of
71 int get_fetch_map(struct ref *remote_refs, const struct refspec *refspec,
74 struct ref *get_remote_ref(struct ref *remote_refs, const char *name);
77 * For the given remote, reads the refspec's src and sets the other fields.
79 int remote_find_tracking(struct remote *remote, struct refspec *refspec);
85 const char *remote_name;
86 struct remote *remote;
88 const char **merge_name;
89 struct refspec **merge;
93 struct branch *branch_get(const char *name);
95 int branch_has_merge_config(struct branch *branch);
96 int branch_merge_matches(struct branch *, int n, const char *);