diff options
author | Josip Sokcevic <sokcevic@chromium.org> | 2024-12-16 22:30:07 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2024-12-18 09:23:49 -0800 |
commit | 13d6588bf60f0980ffa3d178441fa707655fee95 (patch) | |
tree | 38d1bd9e2ad3988739576d82d4d6a62ffd69364b /man/repo.1 | |
parent | 9500aca754058bff18ddf35db62852ca4f722c63 (diff) | |
download | git-repo-13d6588bf60f0980ffa3d178441fa707655fee95.tar.gz |
gc: Introduce new command to remove old projectsv2.50.1
When projects are removed from manifest, they are only removed from
worktree and not from .repo/projects and .repo/project-objects. Keeping
data under .repo can be desired if user expects deleted projects to be
restored (e.g. checking out a release branch).
Android has ongoing effort to remove many stale projects and this change
allows users to easily free-up their disk space.
Bug: b/344018971
Bug: 40013312
Change-Id: Id23c7524a88082ee6db908f9fd69dcd5d0c4f681
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/445921
Reviewed-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Tested-by: Josip Sokcevic <sokcevic@chromium.org>
Diffstat (limited to 'man/repo.1')
-rw-r--r-- | man/repo.1 | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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" "April 2024" "repo" "Repo Manual" | 2 | .TH REPO "1" "December 2024" "repo" "Repo Manual" |
3 | .SH NAME | 3 | .SH NAME |
4 | repo \- repository management tool built on top of git | 4 | repo \- repository management tool built on top of git |
5 | .SH SYNOPSIS | 5 | .SH SYNOPSIS |
@@ -79,6 +79,9 @@ Download and checkout a change | |||
79 | forall | 79 | forall |
80 | Run a shell command in each project | 80 | Run a shell command in each project |
81 | .TP | 81 | .TP |
82 | gc | ||
83 | Cleaning up internal repo state. | ||
84 | .TP | ||
82 | grep | 85 | grep |
83 | Print lines matching a pattern | 86 | Print lines matching a pattern |
84 | .TP | 87 | .TP |