diff options
author | LaMont Jones <lamontjones@google.com> | 2022-09-01 15:41:12 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-11-08 19:54:20 +0000 |
commit | 7efab539f0fc78aa759000a922c30ac45e84530b (patch) | |
tree | 1386caf947c871a861b32657d5f6d371acfda87c /man/repo-sync.1 | |
parent | a3ff64cae54fca4738f49668c4ee6678969000c3 (diff) | |
download | git-repo-7efab539f0fc78aa759000a922c30ac45e84530b.tar.gz |
sync: no garbage collection by default
Adds --auto-gc and --no-auto-gc (default) options to control sync's
behavior around calling `git gc`.
Bug: b/184882274
Change-Id: I4d6ca3b233d79566f27e876ab2d79f238ebc12a9
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/344535
Reviewed-by: Xin Li <delphij@google.com>
Tested-by: LaMont Jones <lamontjones@google.com>
Diffstat (limited to 'man/repo-sync.1')
-rw-r--r-- | man/repo-sync.1 | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/man/repo-sync.1 b/man/repo-sync.1 index 9cc528dd..f006c03d 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" "August 2022" "repo sync" "Repo Manual" | 2 | .TH REPO "1" "November 2022" "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 |
@@ -106,6 +106,13 @@ delete refs that no longer exist on the remote | |||
106 | \fB\-\-no\-prune\fR | 106 | \fB\-\-no\-prune\fR |
107 | do not delete refs that no longer exist on the remote | 107 | do not delete refs that no longer exist on the remote |
108 | .TP | 108 | .TP |
109 | \fB\-\-auto\-gc\fR | ||
110 | run garbage collection on all synced projects | ||
111 | .TP | ||
112 | \fB\-\-no\-auto\-gc\fR | ||
113 | do not run garbage collection on any projects | ||
114 | (default) | ||
115 | .TP | ||
109 | \fB\-s\fR, \fB\-\-smart\-sync\fR | 116 | \fB\-s\fR, \fB\-\-smart\-sync\fR |
110 | smart sync using manifest from the latest known good | 117 | smart sync using manifest from the latest known good |
111 | build | 118 | build |
@@ -200,6 +207,9 @@ to a sha1 revision if the sha1 revision does not already exist locally. | |||
200 | The \fB\-\-prune\fR option can be used to remove any refs that no longer exist on the | 207 | The \fB\-\-prune\fR option can be used to remove any refs that no longer exist on the |
201 | remote. | 208 | remote. |
202 | .PP | 209 | .PP |
210 | The \fB\-\-auto\-gc\fR option can be used to trigger garbage collection on all projects. | ||
211 | By default, repo does not run garbage collection. | ||
212 | .PP | ||
203 | SSH Connections | 213 | SSH Connections |
204 | .PP | 214 | .PP |
205 | If at least one project remote URL uses an SSH connection (ssh://, git+ssh://, | 215 | If at least one project remote URL uses an SSH connection (ssh://, git+ssh://, |