git-repo/subcmds
Josip Sokcevic 13d6588bf6 gc: Introduce new command to remove old projects
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>
2024-12-18 09:23:49 -08:00
..
__init__.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
abandon.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
branches.py branches: Escape percent signs in branch names 2024-12-03 19:02:20 +00:00
checkout.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
cherry_pick.py Update logger.warn to logger.warning 2023-10-13 19:34:26 +00:00
diff.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
diffmanifests.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
download.py subcmds: Use repo logger 2023-09-14 17:13:37 +00:00
forall.py forall: Fix returning results early 2024-10-30 16:11:04 +00:00
gc.py gc: Introduce new command to remove old projects 2024-12-18 09:23:49 -08:00
grep.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
help.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
info.py info: Handle undefined mergeBranch 2023-11-20 19:22:53 +00:00
init.py init: add --manifest-upstream-branch 2024-09-26 00:52:28 +00:00
list.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00
manifest.py Update logger.warn to logger.warning 2023-10-13 19:34:26 +00:00
overview.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
prune.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
rebase.py Update logger.warn to logger.warning 2023-10-13 19:34:26 +00:00
selfupdate.py subcmds: Use repo logger 2023-09-14 17:13:37 +00:00
smartsync.py Format codebase with black and check formatting in CQ 2023-03-22 17:46:28 +00:00
stage.py subcmds: Use repo logger 2023-09-14 17:13:37 +00:00
start.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
status.py subcmds: reduce multiprocessing serialization overhead 2024-10-23 23:34:34 +00:00
sync.py sync: Delete symlinks relative to client topdir 2024-12-16 10:23:40 -08:00
upload.py upload: Return correct tuple values in _ProcessResults 2024-10-31 21:18:53 +00:00
version.py cleanup: Update codebase to expect Python 3.6 2023-10-31 16:03:54 +00:00