X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=ls-not-packed;fp=ls-not-packed;h=f186f58d2ac436dd8633a7e8e2affe53fe9b3e00;hb=db77743667b715e7324726d8ad02843a740c0118;hp=d01a9539f44931c51ccd45523b9757786a1a4e3f;hpb=21a0b81256c2b571a7d0ce21886b6588af2f25ca;p=git-scripts.git diff --git a/ls-not-packed b/ls-not-packed index d01a953..f186f58 100755 --- a/ls-not-packed +++ b/ls-not-packed @@ -1,12 +1,4 @@ #! /bin/sh -COUNT_OBJ_PRG="git count-objects -v | grep ^count: | cut -c 8-" -export COUNT_OBJ_PRG - -exec "`dirname \"$0\"`"/do-all \ - 'cd "$d" && count_obj=`eval $COUNT_OBJ_PRG`; ' \ - 'if [ "$d" != "$g" ]; then' \ - 'for c in `eval git submodule foreach $COUNT_OBJ_PRG`;' \ - 'do count_obj=`expr $count_obj + $c`; done; ' \ - 'fi; ' \ - 'test $count_obj -gt 1 && echo "$d"' \ +count_obj=`git count-objects -v | grep ^count: | cut -c 8-` +echo $count_obj