fetch-pack: respect --no-update-shallow in v2
[gitweb.git] / commit.h
index 42728c2906608a9f4f1724e02b16d913b74b8728..a3f2b2eddb3d1d8f16c2170c7cfc46b4000d985a 100644 (file)
--- a/commit.h
+++ b/commit.h
@@ -257,6 +257,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;