diff options
author | Stefan Beller <sbeller@google.com> | 2018-05-18 01:51:53 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-18 02:13:10 +0300 |
commit | 2f6c767fd49a1fb324c2d19fcee1fe227d816e11 (patch) | |
tree | 1461a50478b84508df585b20f3d4e69ac670b0ef /object.h | |
parent | eee4502baaf8f82c20bcda70625df56ce68dd9b1 (diff) |
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>
Diffstat (limited to 'object.h')
-rw-r--r-- | object.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -20,6 +20,8 @@ struct parsed_object_pool { int is_shallow; struct stat_validity *shallow_stat; char *alternate_shallow_file; + + int commit_graft_prepared; }; struct parsed_object_pool *parsed_object_pool_new(void); |