diff options
| author | Insaf Latypov <saferif@google.com> | 2026-10-13 15:50:11 +0000 |
|---|---|---|
| committer | gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2026-10-19 12:20:06 -0700 |
| commit | 46e9866ca0f161604bd45a0c3b7c7887c9415dcb (patch) | |
| tree | 2f70f0e9b78804ee11f96f427b56066bda5e1e4f /man | |
| parent | 404aec7b53107a07f29445580f6b5e7a99419757 (diff) | |
| download | git-repo-2.70.tar.gz | |
sync: Provide a CLI command to opt in/out of smartsync for a user.v2.70
Add a boolean `sync.smartsync` setting in the per-user repo config
(~/.repoconfig/config):
* true: smart sync by default, as if -s were passed.
* false: never smart sync by default, even if the manifest enables it.
* unset: follow the manifest default, as before.
Add docs/repoconfig.md as the user facing documentation for
~/.repoconfig/config and its settings, and point smart-sync.md and the
`repo sync` help at it.
Bug: 569927750
Test: ./run_tests
Change-Id: Ideb4119fcb5e90f8bb35c493d9e4f8bec7878b77
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/643264
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Insaf Latypov <saferif@google.com>
Tested-by: Insaf Latypov <saferif@google.com>
Diffstat (limited to 'man')
| -rw-r--r-- | man/repo-sync.1 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/man/repo-sync.1 b/man/repo-sync.1 index b033a906f..2c7467e1f 100644 --- a/man/repo-sync.1 +++ b/man/repo-sync.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 2026" "repo sync" "Repo Manual" | 2 | .TH REPO "1" "October 2026" "repo sync" "Repo Manual" |
| 3 | .SH NAME | 3 | .SH NAME |
| 4 | repo \- repo sync - manual page for repo sync | 4 | repo \- repo sync - manual page for repo sync |
| 5 | .SH SYNOPSIS | 5 | .SH SYNOPSIS |
| @@ -188,6 +188,10 @@ The \fB\-s\fR/\-\-smart\-sync option can be used to sync to a known good build a | |||
| 188 | specified by the manifest\-server element in the current manifest. The | 188 | specified by the manifest\-server element in the current manifest. The |
| 189 | \fB\-t\fR/\-\-smart\-tag option is similar and allows you to specify a custom tag/label. | 189 | \fB\-t\fR/\-\-smart\-tag option is similar and allows you to specify a custom tag/label. |
| 190 | .PP | 190 | .PP |
| 191 | Whether 'repo sync' smart syncs by default can also be controlled with the | ||
| 192 | sync.smartsync per\-user setting; see docs/repoconfig.md. Explicit | ||
| 193 | \fB\-s\fR/\-\-no\-smart\-sync/\-t flags always override it. | ||
| 194 | .PP | ||
| 191 | The \fB\-u\fR/\-\-manifest\-server\-username and \fB\-p\fR/\-\-manifest\-server\-password options can | 195 | The \fB\-u\fR/\-\-manifest\-server\-username and \fB\-p\fR/\-\-manifest\-server\-password options can |
| 192 | be used to specify a username and password to authenticate with the manifest | 196 | be used to specify a username and password to authenticate with the manifest |
| 193 | server when using the \fB\-s\fR or \fB\-t\fR option. | 197 | server when using the \fB\-s\fR or \fB\-t\fR option. |
