summaryrefslogtreecommitdiffstats
path: root/man/repo-init.1
diff options
context:
space:
mode:
authorLaMont Jones <lamontjones@google.com>2022-08-18 07:20:57 -0400
committerLaMont Jones <lamontjones@google.com>2022-10-27 21:59:09 +0000
commitb750b48f50eb4a11087ca6775161d5bf4d5c47d5 (patch)
treed3d3a7d6d021e1547d9f22875aea57a717540f92 /man/repo-init.1
parent6c8b894d8d06c8b1bf852b52676ee055a21718d6 (diff)
downloadgit-repo-b750b48f50eb4a11087ca6775161d5bf4d5c47d5.tar.gz
init: add --manifest-depth for shallow manifest clonev2.29.5
People rarely care about the history of the manifest repo. Add a parameter to specify depth for the manifest. For now, make the default behavior the same as the current behavior. At a future date, the default will be changed to 1. People who need the full history should begin passing --manifest-depth=0 to preserve the behavior when the default changes. 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, https://crbug.com/gerrit/16358 Change-Id: I9130fed3eaed656435c778a85cfe9d04e3a4a6a0 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/349814 Tested-by: LaMont Jones <lamontjones@google.com> Reviewed-by: Xin Li <delphij@google.com>
Diffstat (limited to 'man/repo-init.1')
-rw-r--r--man/repo-init.16
1 files changed, 5 insertions, 1 deletions
diff --git a/man/repo-init.1 b/man/repo-init.1
index 32b3ea1b..cf93de1f 100644
--- a/man/repo-init.1
+++ b/man/repo-init.1
@@ -1,5 +1,5 @@
1.\" DO NOT MODIFY THIS FILE! It was generated by help2man. 1.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
2.TH REPO "1" "August 2022" "repo init" "Repo Manual" 2.TH REPO "1" "October 2022" "repo init" "Repo Manual"
3.SH NAME 3.SH NAME
4repo \- repo init - manual page for repo init 4repo \- repo init - manual page for repo init
5.SH SYNOPSIS 5.SH SYNOPSIS
@@ -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 (0 for full clone); see git clone (default: 0)
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