commit: allow prepare_commit_graft to handle arbitrary repositories
authorStefan Beller <sbeller@google.com>
Thu, 17 May 2018 22:51:53 +0000 (15:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 May 2018 23:13:10 +0000 (08:13 +0900)
commit2f6c767fd49a1fb324c2d19fcee1fe227d816e11
tree1461a50478b84508df585b20f3d4e69ac670b0ef
parenteee4502baaf8f82c20bcda70625df56ce68dd9b1
commit: allow prepare_commit_graft to handle arbitrary repositories

Move the global variable 'commit_graft_prepared' into the object
pool and convert the function prepare_commit_graft to work
an arbitrary repositories.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c
object.h