From c474c9cba1a8fbe09c219cc588d9ed334d31cd1e Mon Sep 17 00:00:00 2001 From: Jack Neus Date: Mon, 26 Jul 2021 23:08:54 +0000 Subject: repo: Add support for standalone manifests Added --standalone_manifest to repo tool. If set, the manifest is downloaded directly from the appropriate source (currently, we only support GS) and used instead of creating a manifest git checkout. The manifests.git repo is still created to keep track of various config but is marked as being for a standalone manifest so that the repo tool doesn't try to run networked git commands in it. BUG=b:192664812 TEST=existing tests (no coverage), manual runs Change-Id: I84378cbc7f8e515eabeccdde9665efc8cd2a9d21 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/312942 Tested-by: Jack Neus Reviewed-by: Mike Frysinger --- man/repo-init.1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'man/repo-init.1') diff --git a/man/repo-init.1 b/man/repo-init.1 index e860f95d..9957b64d 100644 --- a/man/repo-init.1 +++ b/man/repo-init.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man. -.TH REPO "1" "July 2021" "repo init" "Repo Manual" +.TH REPO "1" "September 2021" "repo init" "Repo Manual" .SH NAME repo \- repo init - manual page for repo init .SH SYNOPSIS @@ -31,6 +31,10 @@ manifest branch or revision (use HEAD for default) \fB\-m\fR NAME.xml, \fB\-\-manifest\-name\fR=\fI\,NAME\/\fR.xml initial manifest file .TP +\fB\-\-standalone\-manifest\fR +download the manifest as a static file rather then +create a git checkout of the manifest repo +.TP \fB\-g\fR GROUP, \fB\-\-groups\fR=\fI\,GROUP\/\fR restrict manifest projects to ones with specified group(s) [default|all|G1,G2,G3|G4,\-G5,\-G6] @@ -137,6 +141,12 @@ equivalent to using \fB\-b\fR HEAD. The optional \fB\-m\fR argument can be used to specify an alternate manifest to be used. If no manifest is specified, the manifest default.xml will be used. .PP +If the \fB\-\-standalone\-manifest\fR argument is set, the manifest will be downloaded +directly from the specified \fB\-\-manifest\-url\fR as a static file (rather than setting +up a manifest git checkout). With \fB\-\-standalone\-manifest\fR, the manifest will be +fully static and will not be re\-downloaded during subsesquent `repo init` and +`repo sync` calls. +.PP The \fB\-\-reference\fR option can be used to point to a directory that has the content of a \fB\-\-mirror\fR sync. This will make the working directory use as much data as possible from the local reference directory when fetching from the server. This -- cgit v1.2.3-54-g00ecf