Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (11 sloc) 0.346 kb
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh

. git-sh-setup

echo $(find "$GIT_DIR/objects"/?? -type f -print | 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
Something went wrong with that request. Please try again.