diff options
| author | Mike Frysinger <vapier@google.com> | 2025-12-11 17:24:49 -0500 |
|---|---|---|
| committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2026-01-05 06:36:08 -0800 |
| commit | 622a5bf9c2937fbfc631ccc30d5debf74010361d (patch) | |
| tree | 736eecb7636fa9b5b6b54f9e2dc480f813a57255 /man | |
| parent | 871e4c7ed153682a77de44e300b5f5461eb08538 (diff) | |
| download | git-repo-2.60.2.tar.gz | |
init: change --manifest-depth default to 1v2.60.2
Most users do not care about the manifest history in .repo/manifests/.
Let's change the default to 1 so things work smoothly for most people
most of the time. For the rare folks who want the full history, they
can add --manifest-depth=0 to their `repo init`.
This has no effect on existing checkouts.
Spot checking Android & CrOS manifests shows significant speedups.
Full history can take O(10's seconds) to O(minutes) while depth of 1
takes constant time of O(~5 seconds).
Bug: 468033850
Change-Id: I4b8ed62a8a636babcc5226552badb69600d0c353
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/535481
Tested-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'man')
| -rw-r--r-- | man/repo-init.1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man/repo-init.1 b/man/repo-init.1 index 37411752..55b885c4 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" "September 2024" "repo init" "Repo Manual" | 2 | .TH REPO "1" "December 2025" "repo init" "Repo Manual" |
| 3 | .SH NAME | 3 | .SH NAME |
| 4 | repo \- repo init - manual page for repo init | 4 | repo \- repo init - manual page for repo init |
| 5 | .SH SYNOPSIS | 5 | .SH SYNOPSIS |
| @@ -53,7 +53,7 @@ create a git checkout of the manifest repo | |||
| 53 | .TP | 53 | .TP |
| 54 | \fB\-\-manifest\-depth\fR=\fI\,DEPTH\/\fR | 54 | \fB\-\-manifest\-depth\fR=\fI\,DEPTH\/\fR |
| 55 | create a shallow clone of the manifest repo with given | 55 | create a shallow clone of the manifest repo with given |
| 56 | depth (0 for full clone); see git clone (default: 0) | 56 | depth (0 for full clone); see git clone (default: 1) |
| 57 | .SS Manifest (only) checkout options: | 57 | .SS Manifest (only) checkout options: |
| 58 | .TP | 58 | .TP |
| 59 | \fB\-c\fR, \fB\-\-current\-branch\fR | 59 | \fB\-c\fR, \fB\-\-current\-branch\fR |
