diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-04-25 10:41:16 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-25 10:41:16 +0300 |
commit | 732ce7aaca15d32c1284d85498a0f2bda7406b95 (patch) | |
tree | f8307f217660f4c63730bfb2b7c144fc903aa0a1 /commit.h | |
parent | abd7ccdd4ddcc2d2ce1d51943051c071902b159a (diff) | |
parent | 1339078f5e670e5eb084a4a64c81a0d0b5f1e223 (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |