Staging
v0.5.1
https://github.com/git/git
Revision 27dedf0c3b78d1072fb5449149421284f9e5297b authored by Junio C Hamano on 17 November 2005, 05:32:44 UTC, committed by Junio C Hamano on 17 November 2005, 05:32:44 UTC
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 60d64db
Raw File
Tip revision: 27dedf0c3b78d1072fb5449149421284f9e5297b authored by Junio C Hamano on 17 November 2005, 05:32:44 UTC
GIT 0.99.9j aka 1.0rc3
Tip revision: 27dedf0
git-count-objects.sh
#!/bin/sh

. git-sh-setup

echo $(find "$GIT_DIR/objects"/?? -type f -print 2>/dev/null | wc -l) objects, \
$({
    echo 0
    # "no-such" is to help Darwin folks by not using xargs -r.
    find "$GIT_DIR/objects"/?? -type f -print 2>/dev/null |
    xargs du -k "$GIT_DIR/objects/no-such" 2>/dev/null |
    sed -e 's/[ 	].*/ +/'
    echo p
} | dc) kilobytes
back to top