projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
The synopsis of the manpages should use the hyphenated version
[git]
/
git-count-objects.sh
1
#!/bin/sh
2
3
. git-sh-setup
4
5
echo $(find "$GIT_DIR/objects"/?? -type f -print | wc -l) objects, \
6
$({
7
echo 0
8
# "no-such" is to help Darwin folks by not using xargs -r.
9
find "$GIT_DIR/objects"/?? -type f -print 2>/dev/null |
10
xargs du -k "$GIT_DIR/objects/no-such" 2>/dev/null |
11
sed -e 's/[ ].*/ +/'
12
echo p
13
} | dc) kilobytes