summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2017-03-13 20:28:49 -0400
committerDave Reisner <dreisner@archlinux.org>2017-03-25 08:08:37 -0400
commit5684b04011b5a7584c214a5efa1f3a9ddabaf9f1 (patch)
treef8e1cdef959ffe6cb67d8129f3e2d25e02989423
parentaceefc28ca701feb87135a9643fd8d57223a550f (diff)
downloadasp32-5684b04011b5a7584c214a5efa1f3a9ddabaf9f1.tar.xz
gc: merge prune and gc into single step
pass --prune=all to gc to ensure that we properly cleanup unpacked and packed objects and don't have the weird bloating effect after a first pass, e.g.: $ asp disk-usage ==> Using 640K on disk. $ asp gc Nothing new to pack. $ asp disk-usage ==> Using 8.4M on disk. $ asp gc Nothing new to pack. $ asp disk-usage ==> Using 328K on disk.
-rw-r--r--asp.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/asp.in b/asp.in
index d22f81e..2e6805e 100644
--- a/asp.in
+++ b/asp.in
@@ -176,8 +176,7 @@ difflog() {
}
gc() {
- git prune
- git gc
+ git gc --prune=all
}
untrack() {