aboutsummaryrefslogtreecommitdiff
path: root/bin/gc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-28 20:05:24 -0300
committerEuAndreh <eu@euandre.org>2022-10-28 20:05:47 -0300
commit6f35eb1d26922dff508fe07103b7c0cd90e80a83 (patch)
treed45d0a4be204f24f0ec2771b9589030d00c41797 /bin/gc
parentbin/vcs: Add initial git_gc() implementation (diff)
downloaddotfiles-6f35eb1d26922dff508fe07103b7c0cd90e80a83.tar.gz
dotfiles-6f35eb1d26922dff508fe07103b7c0cd90e80a83.tar.xz
bin/gc: Add gc_vcs() step
Diffstat (limited to 'bin/gc')
-rwxr-xr-xbin/gc6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/gc b/bin/gc
index 1570f84..e09ef13 100755
--- a/bin/gc
+++ b/bin/gc
@@ -100,6 +100,11 @@ gc_email() {
xargs -I{} rm -vf "{}"
}
+gc_vcs() {
+ repos -e ~/dev/go/ -e ~/dev/quicklisp/ -e ~/dev/archive/ ~/dev/ |
+ xargs -I% -P4 x vcs -C% gc OR true
+}
+
BEFORE="$(disk)"
set -x
@@ -109,6 +114,7 @@ gc_trash
gc_tmpdir
gc_docker
gc_email
+gc_vcs
wait
set +x
AFTER="$(disk)"