From: Oleg Broytman Date: Tue, 7 Jul 2015 14:32:41 +0000 (+0300) Subject: New algorithm to find non-packed repos X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5ce70d78ec131c501d2dcc0732cda2def2d95977;p=git-scripts.git New algorithm to find non-packed repos Consider repos with files in refs and rerere cache not packed. --- diff --git a/ls-not-packed b/ls-not-packed index d2bb878..a674f59 100755 --- a/ls-not-packed +++ b/ls-not-packed @@ -1,4 +1,6 @@ #! /bin/sh exec "`dirname \"$0\"`"/do-all \ - 'test "`ls -1 \"$g\"/objects 2>/dev/null | wc -l`" -gt 2 && echo "$d"' + 'test \ + "`find \"$g\"/objects/ \"$g\"/refs/ \"$g\"/rr-cache/ \ + ! -name HEAD -type f 2>/dev/null | wc -l`" -gt 3 && echo "$d"'