all repos — cgit @ b19d889f6cb2b8ded469c1676dddb3c71751b0ee

a hyperfast web frontend for git written in c

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>
John Keeping john@keeping.me.uk
Sat, 13 Aug 2016 11:52:51 +0100
commit

b19d889f6cb2b8ded469c1676dddb3c71751b0ee

parent

d9dff37691633aa44524ecae216c103ea497e940

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M cgit.hcgit.h

@@ -344,6 +344,7 @@ extern int cgit_refs_cb(const char *refname, const struct object_id *oid,

int flags, void *cb_data); extern void cgit_free_commitinfo(struct commitinfo *info); +extern void cgit_free_taginfo(struct taginfo *info); void cgit_diff_tree_cb(struct diff_queue_struct *q, struct diff_options *options, void *data);
M shared.cshared.c

@@ -203,7 +203,7 @@ }

return ref; } -static void cgit_free_taginfo(struct taginfo *tag) +void cgit_free_taginfo(struct taginfo *tag) { if (tag->tagger) free(tag->tagger);