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>
This commit is contained in:

committed by
Junio C Hamano

parent
cbd53a2193
commit
6a1a79fd14
4
object.h
4
object.h
@ -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);
|
||||
|
Reference in New Issue
Block a user