]> granicus.if.org Git - cgit/commitdiff
shared: make cgit_free_taginfo() public
authorJohn Keeping <john@keeping.me.uk>
Sat, 13 Aug 2016 10:52:51 +0000 (11:52 +0100)
committerJohn Keeping <john@keeping.me.uk>
Sat, 1 Oct 2016 10:46:55 +0000 (11:46 +0100)
We will use this function from ui-tag.c in the next patch.

Signed-off-by: John Keeping <john@keeping.me.uk>
cgit.h
shared.c

diff --git a/cgit.h b/cgit.h
index 7df0e3ae98d9353bc6c53256b978a47ffdb1572d..df4231290ba2642b804b3c0e16dc121c9ee9bbc3 100644 (file)
--- a/cgit.h
+++ b/cgit.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);
index 3ada875b81ba0d219836387326e37e68070662eb..571fbba6cb67ba6d623e544348d58380e168d614 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -203,7 +203,7 @@ static struct refinfo *cgit_mk_refinfo(const char *refname, const struct object_
        return ref;
 }
 
-static void cgit_free_taginfo(struct taginfo *tag)
+void cgit_free_taginfo(struct taginfo *tag)
 {
        if (tag->tagger)
                free(tag->tagger);