summaryrefslogtreecommitdiffstats
path: root/man/repo-init.1
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2022-08-18 07:20:57 -0400
committerMike Frysinger <vapier@google.com>2022-08-18 19:12:21 +0000
commit076d54652e0025e1360f66e483926477b910b02e (patch)
tree8f28f9ab60c0d7d47f2ad81e0ba9682f053a98c9 /man/repo-init.1
parent790f4cea7aa95667296e0aa22eb0690df91c45e8 (diff)
downloadgit-repo-076d54652e0025e1360f66e483926477b910b02e.tar.gz
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 <vapier@google.com> Reviewed-by: LaMont Jones <lamontjones@google.com>
Diffstat (limited to 'man/repo-init.1')
-rw-r--r--man/repo-init.14
1 files changed, 4 insertions, 0 deletions
diff --git a/man/repo-init.1 b/man/repo-init.1
index 32b3ea1b..0d45bf78 100644
--- a/man/repo-init.1
+++ b/man/repo-init.1
@@ -45,6 +45,10 @@ sync any submodules associated with the manifest repo
45\fB\-\-standalone\-manifest\fR 45\fB\-\-standalone\-manifest\fR
46download the manifest as a static file rather then 46download the manifest as a static file rather then
47create a git checkout of the manifest repo 47create a git checkout of the manifest repo
48.TP
49\fB\-\-manifest\-depth\fR=\fI\,DEPTH\/\fR
50create a shallow clone of the manifest repo with given
51depth; see git clone (default: 1)
48.SS Manifest (only) checkout options: 52.SS Manifest (only) checkout options:
49.TP 53.TP
50\fB\-c\fR, \fB\-\-current\-branch\fR 54\fB\-c\fR, \fB\-\-current\-branch\fR