]> git.phdru.name Git - git-scripts.git/blobdiff - ls-not-packed
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / ls-not-packed
index a674f59d80feb3adc22c17141b031f1b1cef920a..f186f58d2ac436dd8633a7e8e2affe53fe9b3e00 100755 (executable)
@@ -1,6 +1,4 @@
 #! /bin/sh
 
-exec "`dirname \"$0\"`"/do-all \
-   'test \
-      "`find \"$g\"/objects/ \"$g\"/refs/ \"$g\"/rr-cache/ \
-         ! -name HEAD -type f 2>/dev/null | wc -l`" -gt 3 && echo "$d"'
+count_obj=`git count-objects -v | grep ^count: | cut -c 8-`
+echo $count_obj