summaryrefslogtreecommitdiff
path: root/diffcore.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-05-27 22:50:30 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-29 18:17:43 (GMT)
commit226406f693013ea3eadab258cb5fc9d8e83df916 (patch)
treec08246838de338afaad76cf758d5099395bae36d /diffcore.h
parenta00d7d106aa333c4b4d0095f58e05c0c4621bbc2 (diff)
downloadgit-226406f693013ea3eadab258cb5fc9d8e83df916.zip
git-226406f693013ea3eadab258cb5fc9d8e83df916.tar.gz
git-226406f693013ea3eadab258cb5fc9d8e83df916.tar.bz2
[PATCH] Introduce diff_free_filepair() funcion.
This introduces a new function to free a common data structure, and plugs some leaks. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'diffcore.h')
-rw-r--r--diffcore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/diffcore.h b/diffcore.h
index ee1955b..0f82bd9 100644
--- a/diffcore.h
+++ b/diffcore.h
@@ -54,6 +54,8 @@ struct diff_filepair {
(S_ISREG(mode) ? (S_IFREG | ce_permissions(mode)) : \
S_ISLNK(mode) ? S_IFLNK : S_IFDIR)
+extern void diff_free_filepair(struct diff_filepair *);
+
extern int diff_unmodified_pair(struct diff_filepair *);
struct diff_queue_struct {