From e0b16a22a01c54a00a9e4a0c53dddfce3b0d59d6 Mon Sep 17 00:00:00 2001 From: Xin Li Date: Sun, 26 Sep 2021 23:20:32 -0700 Subject: superproject: support a new revision attribute. Tested: $ ./run_tests Verified that a manifest that specified superproject revision would use the specified revision, and superproject will use the default revision. Note that this is a slight behavior change from earlier repo versions, which would always use the branch name of the manifest itself. However, the new behavior would be more consisitent with regular "project" element and would allow superproject be used even if it is not enabled for the particular manifest branch, so we have decided to make the change as it would provide more flexibility and better matches what other elements would do. Bug: [google internal] b/187868160 Change-Id: I35255ee347aff6e65179f7879d52931f168b477e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/317643 Tested-by: Xin Li Reviewed-by: Raman Tenneti Reviewed-by: Mike Frysinger --- docs/manifest-format.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'docs/manifest-format.md') diff --git a/docs/manifest-format.md b/docs/manifest-format.md index 854e5e1b..ed297ae7 100644 --- a/docs/manifest-format.md +++ b/docs/manifest-format.md @@ -103,8 +103,9 @@ following DTD: - - + + + @@ -432,6 +433,11 @@ same meaning as project's name attribute. See the Attribute `remote`: Name of a previously defined remote element. If not supplied the remote given by the default element is used. +Attribute `revision`: Name of the Git branch the manifest wants +to track for this superproject. If not supplied the revision given +by the remote element is used if applicable, else the default +element is used. + ### Element contactinfo *** -- cgit v1.2.3-54-g00ecf