Преглед на файлове

Have xtragc x-tra feature work in bare repos as well

Alois Mahdal преди 6 години
родител
ревизия
538d3415e7
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4
    2
      dotfiles/gittum/bin/xtragc

+ 4
- 2
dotfiles/gittum/bin/xtragc Целия файл

@@ -4,8 +4,10 @@
4 4
 # Perform extra aggressive garbage collection
5 5
 #
6 6
 
7
+XTRAGC_REFDIR=.
8
+test -d ".git" && XTRAGC_REFDIR=".git"
7 9
 
8
-du -hs .git
10
+du -hs "$XTRAGC_REFDIR"
9 11
 git \
10 12
     -c gc.reflogExpire=0 \
11 13
     -c gc.reflogExpireUnreachable=0 \
@@ -13,4 +15,4 @@ git \
13 15
     -c gc.rerereunresolved=0 \
14 16
     -c gc.pruneExpire=now \
15 17
     gc
16
-du -hs .git
18
+du -hs "$XTRAGC_REFDIR"