Code

commit: save the commit buffer off when parsing a commit
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 May 2005 01:27:14 +0000 (18:27 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 26 May 2005 01:27:14 +0000 (18:27 -0700)
commit3ff1fbbb9446e03050047a67247151887ee59e70
tree82360cb0096cfa15327f914964de694d335ec7a6
parente871b649a3f4ede26eb98c7d46df7acdc7ecbe81
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.c
commit.h