diff options
| author | John Keeping | 2016-08-13 11:52:51 +0100 |
|---|---|---|
| committer | John Keeping | 2016-10-01 11:46:55 +0100 |
| commit | b19d889f6cb2b8ded469c1676dddb3c71751b0ee (patch) | |
| tree | 9d87cf269daa24bbdf5c3ce1284171ac0170ef02 | |
| parent | d9dff37691633aa44524ecae216c103ea497e940 (diff) | |
| download | cgit-b19d889f6cb2b8ded469c1676dddb3c71751b0ee.tar.gz cgit-b19d889f6cb2b8ded469c1676dddb3c71751b0ee.tar.bz2 cgit-b19d889f6cb2b8ded469c1676dddb3c71751b0ee.zip | |
shared: make cgit_free_taginfo() public
We will use this function from ui-tag.c in the next patch.
Signed-off-by: John Keeping <john@keeping.me.uk>
| -rw-r--r-- | cgit.h | 1 | ||||
| -rw-r--r-- | shared.c | 2 |
2 files changed, 2 insertions, 1 deletions
| @@ -344,6 +344,7 @@ extern int cgit_refs_cb(const char *refname, const struct object_id *oid, | |||
| 344 | int flags, void *cb_data); | 344 | int flags, void *cb_data); |
| 345 | 345 | ||
| 346 | extern void cgit_free_commitinfo(struct commitinfo *info); | 346 | extern void cgit_free_commitinfo(struct commitinfo *info); |
| 347 | extern void cgit_free_taginfo(struct taginfo *info); | ||
| 347 | 348 | ||
| 348 | void cgit_diff_tree_cb(struct diff_queue_struct *q, | 349 | void cgit_diff_tree_cb(struct diff_queue_struct *q, |
| 349 | struct diff_options *options, void *data); | 350 | struct diff_options *options, void *data); |
| @@ -203,7 +203,7 @@ static struct refinfo *cgit_mk_refinfo(const char *refname, const struct object_ | |||
| 203 | return ref; | 203 | return ref; |
| 204 | } | 204 | } |
| 205 | 205 | ||
| 206 | static void cgit_free_taginfo(struct taginfo *tag) | 206 | void cgit_free_taginfo(struct taginfo *tag) |
| 207 | { | 207 | { |
| 208 | if (tag->tagger) | 208 | if (tag->tagger) |
| 209 | free(tag->tagger); | 209 | free(tag->tagger); |
