From d620650e20051859359c8bb1ec26c122261af652 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 3 Feb 2018 06:30:05 +0300 Subject: [PATCH] Add gc-expire scripts --- gc-expire | 4 ++++ gc-expire-repack | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100755 gc-expire create mode 100755 gc-expire-repack diff --git a/gc-expire b/gc-expire new file mode 100755 index 0000000..13f8a41 --- /dev/null +++ b/gc-expire @@ -0,0 +1,4 @@ +#! /bin/sh + +git reflog expire --expire=now --all && +exec git gc --aggressive --prune=now diff --git a/gc-expire-repack b/gc-expire-repack new file mode 100755 index 0000000..333bb6c --- /dev/null +++ b/gc-expire-repack @@ -0,0 +1,8 @@ +#! /bin/sh + +git reflog expire --expire=now --all && +git gc --aggressive --prune=now && + +git reflog expire --expire-unreachable=0 --all && +git repack -A -d && +exec git prune -- 2.39.5