summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2018-05-17 22:51:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-17 23:13:10 (GMT)
commiteee4502baaf8f82c20bcda70625df56ce68dd9b1 (patch)
tree76bdb6640a4a9809a49e9d53c3b8bf26469473d8 /object.h
parent102de880d24fe66a8916e7c984e5bf8db6be047c (diff)
downloadgit-eee4502baaf8f82c20bcda70625df56ce68dd9b1.zip
git-eee4502baaf8f82c20bcda70625df56ce68dd9b1.tar.gz
git-eee4502baaf8f82c20bcda70625df56ce68dd9b1.tar.bz2
shallow: migrate shallow information into the object parser
We need to convert the shallow functions all at the same time as we move the data structures they operate on into the repository. 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.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/object.h b/object.h
index ec908f9..a314331 100644
--- a/object.h
+++ b/object.h
@@ -16,6 +16,10 @@ struct parsed_object_pool {
/* parent substitutions from .git/info/grafts and .git/shallow */
struct commit_graft **grafts;
int grafts_alloc, grafts_nr;
+
+ int is_shallow;
+ struct stat_validity *shallow_stat;
+ char *alternate_shallow_file;
};
struct parsed_object_pool *parsed_object_pool_new(void);