From b750b48f50eb4a11087ca6775161d5bf4d5c47d5 Mon Sep 17 00:00:00 2001 From: LaMont Jones Date: Thu, 18 Aug 2022 07:20:57 -0400 Subject: init: add --manifest-depth for shallow manifest clone 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 Reviewed-by: Xin Li --- man/repo-manifest.1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'man/repo-manifest.1') diff --git a/man/repo-manifest.1 b/man/repo-manifest.1 index 382918ce..e49836ca 100644 --- a/man/repo-manifest.1 +++ b/man/repo-manifest.1 @@ -1,5 +1,5 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man. -.TH REPO "1" "July 2022" "repo manifest" "Repo Manual" +.TH REPO "1" "October 2022" "repo manifest" "Repo Manual" .SH NAME repo \- repo manifest - manual page for repo manifest .SH SYNOPSIS @@ -190,6 +190,8 @@ CDATA #IMPLIED> + + .IP @@ -485,6 +487,12 @@ project. Same syntax as the corresponding element of `project`. Attribute `remote`: If specified, overrides the remote of the original project. Same syntax as the corresponding element of `project`. .PP +Attribute `dest\-branch`: If specified, overrides the dest\-branch of the original +project. Same syntax as the corresponding element of `project`. +.PP +Attribute `upstream`: If specified, overrides the upstream of the original +project. Same syntax as the corresponding element of `project`. +.PP Element annotation .PP Zero or more annotation elements may be specified as children of a project or @@ -600,7 +608,7 @@ included manifest belong. This appends and recurses, meaning all projects in included manifests carry all parent include groups. Same syntax as the corresponding element of `project`. .PP -Local Manifests +Local Manifests .PP Additional remotes and projects may be added through local manifest files stored in `$TOP_DIR/.repo/local_manifests/*.xml`. -- cgit v1.2.3-54-g00ecf