4 #define TAG_REFSPEC "refs/tags/*:refs/tags/*"
5 extern const struct refspec_item
*tag_refspec
;
10 unsigned matching
: 1;
11 unsigned exact_sha1
: 1;
17 #define REFSPEC_FETCH 1
18 #define REFSPEC_PUSH 0
20 #define REFSPEC_INIT_FETCH { .fetch = REFSPEC_FETCH }
21 #define REFSPEC_INIT_PUSH { .fetch = REFSPEC_PUSH }
24 struct refspec_item
*items
;
35 int refspec_item_init(struct refspec_item
*item
, const char *refspec
,
37 void refspec_item_init_or_die(struct refspec_item
*item
, const char *refspec
,
39 void refspec_item_clear(struct refspec_item
*item
);
40 void refspec_init(struct refspec
*rs
, int fetch
);
41 void refspec_append(struct refspec
*rs
, const char *refspec
);
42 void refspec_appendn(struct refspec
*rs
, const char **refspecs
, int nr
);
43 void refspec_clear(struct refspec
*rs
);
45 int valid_fetch_refspec(const char *refspec
);
49 * Determine what <prefix> values to pass to the peer in ref-prefix lines
50 * (see Documentation/technical/protocol-v2.txt).
52 void refspec_ref_prefixes(const struct refspec
*rs
,
53 struct argv_array
*ref_prefixes
);
55 #endif /* REFSPEC_H */