diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2018-05-15 16:42:16 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-16 11:42:03 +0900 |
commit | 6a1a79fd146510a7f1a6e6303d5adb1f8f298989 (patch) | |
tree | 053ad42391dbd5a57faf3902c0c3d9930a3fd0bf /object.h | |
parent | cbd53a2193d11e83b5bad2c3514bd1603074bc36 (diff) | |
download | git-6a1a79fd146510a7f1a6e6303d5adb1f8f298989.tar.gz |
object: move grafts to object parser
Grafts are only meaningful in the context of a single repository.
Therefore they cannot be global.
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.h')
-rw-r--r-- | object.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,10 @@ struct parsed_object_pool { struct alloc_state *tag_state; struct alloc_state *object_state; unsigned commit_count; + + /* parent substitutions from .git/info/grafts and .git/shallow */ + struct commit_graft **grafts; + int grafts_alloc, grafts_nr; }; struct parsed_object_pool *parsed_object_pool_new(void); |