From 076d54652e0025e1360f66e483926477b910b02e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 18 Aug 2022 07:20:57 -0400 Subject: init: change --depth default to 1 for manifest repo People rarely care about the history of the manifest repo. Change the default to 1 to speed up initial setup. If people really want the full history, they can pass --manifest-depth=0. We can't reuse the existing --depth option because that applies to all projects we clone, not just the manifest repo. Bug: https://crbug.com/gerrit/16193 Change-Id: Ideab1712e9ffc743b9bae97903e074d7d429b134 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/343435 Tested-by: Mike Frysinger Reviewed-by: LaMont Jones --- man/repo-gitc-init.1 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'man/repo-gitc-init.1') diff --git a/man/repo-gitc-init.1 b/man/repo-gitc-init.1 index 88136de6..d6ef5ab6 100644 --- a/man/repo-gitc-init.1 +++ b/man/repo-gitc-init.1 @@ -45,6 +45,10 @@ sync any submodules associated with the manifest repo \fB\-\-standalone\-manifest\fR download the manifest as a static file rather then create a git checkout of the manifest repo +.TP +\fB\-\-manifest\-depth\fR=\fI\,DEPTH\/\fR +create a shallow clone of the manifest repo with given +depth; see git clone (default: 1) .SS Manifest (only) checkout options: .TP \fB\-\-current\-branch\fR -- cgit v1.2.3-54-g00ecf