Browse Source

Add eXTRA-aggrressive git Garbage Collection

Alois Mahdal 6 years ago
parent
commit
0f3e5d10d3
2 changed files with 17 additions and 0 deletions
  1. 16
    0
      dotfiles/gittum/bin/xtragc
  2. 1
    0
      dotfiles/gittum/main.gitconfig

+ 16
- 0
dotfiles/gittum/bin/xtragc View File

@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+#
4
+# Perform extra aggressive garbage collection
5
+#
6
+
7
+
8
+du -hs .git
9
+git \
10
+    -c gc.reflogExpire=0 \
11
+    -c gc.reflogExpireUnreachable=0 \
12
+    -c gc.rerereresolved=0 \
13
+    -c gc.rerereunresolved=0 \
14
+    -c gc.pruneExpire=now \
15
+    gc
16
+du -hs .git

+ 1
- 0
dotfiles/gittum/main.gitconfig View File

@@ -39,6 +39,7 @@
39 39
   sh = show
40 40
   who = ! ~/.gittum/bin/who
41 41
   whoo = ! ~/.gittum/bin/whoo
42
+  xtragc = ! ~/.gittum/bin/xtragc
42 43
 
43 44
 [diff]
44 45
     guitool = kdiff3