Staging
v0.5.1
https://github.com/git/git
Revision 5ca15b8af7f018b9ae9da30130f9dcd1a896e0b3 authored by Junio C Hamano on 08 November 2005, 09:25:59 UTC, committed by Junio C Hamano on 08 November 2005, 09:25:59 UTC
Signed-off-by: Junio C Hamano <junkio@cox.net>
2 parent s 77131db + 4bfb6b6
Raw File
Tip revision: 5ca15b8af7f018b9ae9da30130f9dcd1a896e0b3 authored by Junio C Hamano on 08 November 2005, 09:25:59 UTC
GIT 0.99.9f
Tip revision: 5ca15b8
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