aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-28 19:29:42 -0300
committerEuAndreh <eu@euandre.org>2022-10-28 19:29:44 -0300
commit985c0a1c81447f42a75b629109e0fa27a66291e3 (patch)
treef3cf937a260589dfc92ca6a280b937510d94f4c5
parentbin/update: Log individual repositories being fetched (diff)
downloaddotfiles-985c0a1c81447f42a75b629109e0fa27a66291e3.tar.gz
dotfiles-985c0a1c81447f42a75b629109e0fa27a66291e3.tar.xz
bin/vcs: Add initial git_gc() implementation
Effect: prune remote branches.
-rwxr-xr-xbin/vcs4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/vcs b/bin/vcs
index 90a24c3..33bae3c 100755
--- a/bin/vcs
+++ b/bin/vcs
@@ -156,6 +156,10 @@ mercurial_ps1() {
BRANCH_NAME="$(hg branch)"
}
+git_gc() {
+ git remote prune origin "$@"
+}
+
usage() {
cat <<-'EOF'