Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-25 10:41:16 +0300
committerJunio C Hamano <gitster@pobox.com>2019-04-25 10:41:16 +0300
commit732ce7aaca15d32c1284d85498a0f2bda7406b95 (patch)
treef8307f217660f4c63730bfb2b7c144fc903aa0a1 /commit.h
parentabd7ccdd4ddcc2d2ce1d51943051c071902b159a (diff)
parent1339078f5e670e5eb084a4a64c81a0d0b5f1e223 (diff)
Merge branch 'jt/fetch-no-update-shallow-in-proto-v2'
Fix for protocol v2 support in "git fetch-pack" of shallow clones. * jt/fetch-no-update-shallow-in-proto-v2: fetch-pack: respect --no-update-shallow in v2 fetch-pack: call prepare_shallow_info only if v0
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 5d33477e78..8f1f39f4c3 100644
--- a/commit.h
+++ b/commit.h
@@ -263,6 +263,10 @@ extern void setup_alternate_shallow(struct lock_file *shallow_lock,
extern const char *setup_temporary_shallow(const struct oid_array *extra);
extern void advertise_shallow_grafts(int);
+/*
+ * Initialize with prepare_shallow_info() or zero-initialize (equivalent to
+ * prepare_shallow_info with a NULL oid_array).
+ */
struct shallow_info {
struct oid_array *shallow;
int *ours, nr_ours;