]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
shared: make cgit_free_taginfo() public
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index 325432bae774e06f0e3490cb317f01f4debedb4b..df4231290ba2642b804b3c0e16dc121c9ee9bbc3 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -343,19 +343,20 @@ extern void cgit_free_reflist_inner(struct reflist *list);
 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_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);
 
-extern int cgit_diff_files(const unsigned char *old_sha1,
-                          const unsigned char *new_sha1,
+extern int cgit_diff_files(const struct object_id *old_oid,
+                          const struct object_id *new_oid,
                           unsigned long *old_size, unsigned long *new_size,
                           int *binary, int context, int ignorews,
                           linediff_fn fn);
 
-extern void cgit_diff_tree(const unsigned char *old_sha1,
-                          const unsigned char *new_sha1,
+extern void cgit_diff_tree(const struct object_id *old_oid,
+                          const struct object_id *new_oid,
                           filepair_fn fn, const char *prefix, int ignorews);
 
 extern void cgit_diff_commit(struct commit *commit, filepair_fn fn,