[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH 2/4] shared: make cgit_free_taginfo() public
From: John Keeping <john () keeping ! me ! uk>
Date: 2016-08-13 11:04:30
Message-ID: 8e353a45ccc8d4a09b9d348d517a2c896aaaac40.1471085819.git.john () keeping ! me ! uk
[Download RAW message or body]
We will use this function from ui-tag.c in the next patch.
Signed-off-by: John Keeping <john@keeping.me.uk>
---
cgit.h | 1 +
shared.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/cgit.h b/cgit.h
index ec73dd3..c625161 100644
--- 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);
diff --git a/shared.c b/shared.c
index 432ce61..15ccecf 100644
--- 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);
--
2.9.2.639.g855ae9f
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic