mirror of
https://git.zx2c4.com/cgit
synced 2024-11-26 02:18:42 +00:00
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>
This commit is contained in:
parent
d9dff37691
commit
b19d889f6c
1
cgit.h
1
cgit.h
@ -344,6 +344,7 @@ extern int cgit_refs_cb(const char *refname, const struct object_id *oid,
|
|||||||
int flags, void *cb_data);
|
int flags, void *cb_data);
|
||||||
|
|
||||||
extern void cgit_free_commitinfo(struct commitinfo *info);
|
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,
|
void cgit_diff_tree_cb(struct diff_queue_struct *q,
|
||||||
struct diff_options *options, void *data);
|
struct diff_options *options, void *data);
|
||||||
|
2
shared.c
2
shared.c
@ -203,7 +203,7 @@ static struct refinfo *cgit_mk_refinfo(const char *refname, const struct object_
|
|||||||
return ref;
|
return ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void cgit_free_taginfo(struct taginfo *tag)
|
void cgit_free_taginfo(struct taginfo *tag)
|
||||||
{
|
{
|
||||||
if (tag->tagger)
|
if (tag->tagger)
|
||||||
free(tag->tagger);
|
free(tag->tagger);
|
||||||
|
Loading…
Reference in New Issue
Block a user