4
4
#define TAG_REFSPEC "refs/tags/*:refs/tags/*"
5
5
extern const struct refspec_item *tag_refspec;
6
6
7
+ /**
8
+ * A struct refspec_item holds the parsed interpretation of a refspec. If it will
9
+ * force updates (starts with a '+'), force is true. If it is a pattern
10
+ * (sides end with '*') pattern is true. src and dest are the two sides
11
+ * (including '*' characters if present); if there is only one side, it is src,
12
+ * and dst is NULL; if sides exist but are empty (i.e., the refspec either
13
+ * starts or ends with ':'), the corresponding side is "".
14
+ *
15
+ * remote_find_tracking(), given a remote and a struct refspec_item with either src
16
+ * or dst filled out, will fill out the other such that the result is in the
17
+ * "fetch" specification for the remote (note that this evaluates patterns and
18
+ * returns a single result).
19
+ */
7
20
struct refspec_item {
8
21
unsigned force : 1 ;
9
22
unsigned pattern : 1 ;
@@ -21,20 +34,8 @@ struct refspec_item {
21
34
#define REFSPEC_INIT_PUSH { .fetch = REFSPEC_PUSH }
22
35
23
36
/**
24
- * A struct refspec holds the parsed interpretation of a refspec. If it will
25
- * force updates (starts with a '+'), force is true. If it is a pattern
26
- * (sides end with '*') pattern is true. src and dest are the two sides
27
- * (including '*' characters if present); if there is only one side, it is src,
28
- * and dst is NULL; if sides exist but are empty (i.e., the refspec either
29
- * starts or ends with ':'), the corresponding side is "".
30
- *
31
- * An array of strings can be parsed into an array of struct refspecs using
37
+ * An array of strings can be parsed into a struct refspec using
32
38
* parse_fetch_refspec() or parse_push_refspec().
33
- *
34
- * remote_find_tracking(), given a remote and a struct refspec with either src
35
- * or dst filled out, will fill out the other such that the result is in the
36
- * "fetch" specification for the remote (note that this evaluates patterns and
37
- * returns a single result).
38
39
*/
39
40
struct refspec {
40
41
struct refspec_item * items ;
0 commit comments