summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 01:27:14 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-26 01:27:14 (GMT)
commit3ff1fbbb9446e03050047a67247151887ee59e70 (patch)
tree82360cb0096cfa15327f914964de694d335ec7a6 /commit.h
parente871b649a3f4ede26eb98c7d46df7acdc7ecbe81 (diff)
downloadgit-3ff1fbbb9446e03050047a67247151887ee59e70.zip
git-3ff1fbbb9446e03050047a67247151887ee59e70.tar.gz
git-3ff1fbbb9446e03050047a67247151887ee59e70.tar.bz2
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.
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 620e936..0bb8779 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;