diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-25 19:26:28 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-05-25 19:26:28 -0700 |
commit | bd1e17e245153fdc75feaaf5e556b922d98ca699 (patch) | |
tree | 5ad114ffcf9ccb0220a1a59f7d747a4b88ffa394 /object.c | |
parent | a6f68d4767835d5720cff61785b93eaf99376241 (diff) | |
download | git-bd1e17e245153fdc75feaaf5e556b922d98ca699.tar.gz |
Make "parse_object()" also fill in commit message buffer data.
And teach fsck to free it to save memory.
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -129,6 +129,10 @@ struct object *parse_object(unsigned char *sha1) } else if (!strcmp(type, "commit")) { struct commit *commit = lookup_commit(sha1); parse_commit_buffer(commit, buffer, size); + if (!commit->buffer) { + commit->buffer = buffer; + buffer = NULL; + } obj = &commit->object; } else if (!strcmp(type, "tag")) { struct tag *tag = lookup_tag(sha1); |