]>
git.ipfire.org Git - thirdparty/git.git/blob - git-count-objects.sh
3 # Copyright (c) 2005 Junio C Hamano
6 GIT_DIR
=`git-rev-parse --git-dir` ||
exit $?
8 dc </dev
/null
2>/dev
/null ||
{
9 # This is not a real DC at all -- it just knows how
10 # this script feeds DC and does the computation itself.
16 *,+) acc
=$
(($acc + $a)) ;;
23 echo $
(find "$GIT_DIR/objects"/??
-type f
-print 2>/dev
/null |
wc -l) objects
, \
26 # "no-such" is to help Darwin folks by not using xargs -r.
27 find "$GIT_DIR/objects"/??
-type f
-print 2>/dev
/null |
28 xargs du
-k "$GIT_DIR/objects/no-such" 2>/dev
/null |