commit: prepare free_commit_buffer and release_commit_memory for any repo
authorStefan Beller <sbeller@google.com>
Sat, 15 Dec 2018 00:09:40 +0000 (16:09 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Dec 2018 18:06:33 +0000 (10:06 -0800)
commit6a7895fd8a3bd409f2b71ffc355d5142172cc2a0
treefc7736800e138da6506f50485fb246615dde0ad5
parent4f542b7a7f944986e3f7567f7e94b256b1929f6c
commit: prepare free_commit_buffer and release_commit_memory for any repo

Pass the object pool to free_commit_buffer and release_commit_memory,
such that we can eliminate access to 'the_repository'.

Also remove the TODO in release_commit_memory, as commit->util was
removed in 9d2c97016f (commit.h: delete 'util' field in struct commit,
2018-05-19)

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c
builtin/log.c
builtin/rev-list.c
commit.c
commit.h
object.c