From 985c0a1c81447f42a75b629109e0fa27a66291e3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 28 Oct 2022 19:29:42 -0300 Subject: bin/vcs: Add initial git_gc() implementation Effect: prune remote branches. --- bin/vcs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bin/vcs') 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' -- cgit v1.2.3