summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-17 22:51:53 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 23:13:10 (GMT)
commit2f6c767fd49a1fb324c2d19fcee1fe227d816e11 (patch)
tree1461a50478b84508df585b20f3d4e69ac670b0ef /object.h
parenteee4502baaf8f82c20bcda70625df56ce68dd9b1 (diff)
downloadgit-2f6c767fd49a1fb324c2d19fcee1fe227d816e11.zip
git-2f6c767fd49a1fb324c2d19fcee1fe227d816e11.tar.gz
git-2f6c767fd49a1fb324c2d19fcee1fe227d816e11.tar.bz2
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/object.h b/object.h
index a314331..4af499a 100644
--- a/object.h
+++ b/object.h
@@ -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);