From 3ff1fbbb9446e03050047a67247151887ee59e70 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 25 May 2005 18:27:14 -0700 Subject: commit: save the commit buffer off when parsing a commit object. A fair number of the users potentially want to look at the commit objects more closely, and if you worry about memory leaking in certain applications, you can always do a free(commit->buffer); commit->buffer = NULL; by hand after parsing them. --- commit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'commit.h') diff --git a/commit.h b/commit.h index 620e936bbc..0bb8779ca7 100644 --- a/commit.h +++ b/commit.h @@ -14,6 +14,7 @@ struct commit { unsigned long date; struct commit_list *parents; struct tree *tree; + const char *buffer; }; extern const char *commit_type; -- cgit v1.2.1