X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-not-packed;fp=ls-not-packed;h=a674f59d80feb3adc22c17141b031f1b1cef920a;hb=5ce70d78ec131c501d2dcc0732cda2def2d95977;hp=d2bb878ebfa16a2722b2f20869bff0611bab5e5b;hpb=e67318dc6dd11c0d9d2f24badb0c14a4ce85a654;p=git-scripts.git 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"'