summaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-06-12 10:53:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-06-13 21:38:16 (GMT)
commit79891cb90a4e5b2680308ba2b757a218b9aaa14c (patch)
treeff4f9c89e5faa0c72da4d40112a2c4e13fd30077 /fetch-pack.h
parent1dd73e20d72921fe81a881a9f6cff6d02eca8146 (diff)
downloadgit-79891cb90a4e5b2680308ba2b757a218b9aaa14c.zip
git-79891cb90a4e5b2680308ba2b757a218b9aaa14c.tar.gz
git-79891cb90a4e5b2680308ba2b757a218b9aaa14c.tar.bz2
fetch-pack: use a separate flag for fetch in deepening mode
The shallow repo could be deepened or shortened when then user gives --depth. But in future that won't be the only way to deepen/shorten a repo. Stop relying on args->depth in this mode. Future deepening methods can simply set this flag on instead of updating all these if expressions. The new name "deepen" was chosen after the command to define shallow boundary in pack protocol. New commands also follow this tradition. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.h')
-rw-r--r--fetch-pack.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h
index bb7fd76..4d0adb0 100644
--- a/fetch-pack.h
+++ b/fetch-pack.h
@@ -25,6 +25,7 @@ struct fetch_pack_args {
unsigned self_contained_and_connected:1;
unsigned cloning:1;
unsigned update_shallow:1;
+ unsigned deepen:1;
};
/*