diff options
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -98,6 +98,21 @@ struct taginfo { | |||
98 | char *msg; | 98 | char *msg; |
99 | }; | 99 | }; |
100 | 100 | ||
101 | struct refinfo { | ||
102 | const char *refname; | ||
103 | struct object *object; | ||
104 | union { | ||
105 | struct taginfo *tag; | ||
106 | struct commitinfo *commit; | ||
107 | }; | ||
108 | }; | ||
109 | |||
110 | struct reflist { | ||
111 | struct refinfo **refs; | ||
112 | int alloc; | ||
113 | int count; | ||
114 | }; | ||
115 | |||
101 | extern const char *cgit_version; | 116 | extern const char *cgit_version; |
102 | 117 | ||
103 | extern struct repolist cgit_repolist; | 118 | extern struct repolist cgit_repolist; |
@@ -162,6 +177,10 @@ extern int chk_non_negative(int result, char *msg); | |||
162 | extern int hextoint(char c); | 177 | extern int hextoint(char c); |
163 | extern char *trim_end(const char *str, char c); | 178 | extern char *trim_end(const char *str, char c); |
164 | 179 | ||
180 | extern void cgit_add_ref(struct reflist *list, struct refinfo *ref); | ||
181 | extern int cgit_refs_cb(const char *refname, const unsigned char *sha1, | ||
182 | int flags, void *cb_data); | ||
183 | |||
165 | extern void *cgit_free_commitinfo(struct commitinfo *info); | 184 | extern void *cgit_free_commitinfo(struct commitinfo *info); |
166 | 185 | ||
167 | extern int cgit_diff_files(const unsigned char *old_sha1, | 186 | extern int cgit_diff_files(const unsigned char *old_sha1, |