summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-06-08 23:38:22 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-06-26 18:18:13 +0200
commitbe9fe679fc86a8f233b0a6fc6078894edcb8661e (patch)
tree4eb63e0fffb66400830b050cb5c50fd3139b8a69 /include/git2
parentecb6ca0e1f908c1480a602e8cca16bd8916b8a99 (diff)
downloadlibgit2-be9fe679fc86a8f233b0a6fc6078894edcb8661e.tar.gz
Implement and use git_pkt_free
A git_pkt object can be one of several structs. Add this function for convenience and clarity. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/pkt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/pkt.h b/include/git2/pkt.h
index 7d61d4d38..d0ffa5569 100644
--- a/include/git2/pkt.h
+++ b/include/git2/pkt.h
@@ -56,3 +56,4 @@ struct git_pkt_ref {
*/
int git_pkt_gen_proto(char **out, int *outlen, const char *url);
int git_pkt_parse_line(git_pkt **head, const char *line, const char **out);
+void git_pkt_free(git_pkt *pkt);