1#!/bin/sh 2# 3# Copyright (c) 2005 Junio C Hamano 4# 5 6. git-sh-setup|| die "Not a git repository" 7 8dc</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. 11dc() { 12whileread a b 13do 14case$a,$bin 150,) acc=0;; 16*,+) acc=$(($acc + $a)) ;; 17 p,)echo"$acc";; 18esac 19done 20} 21} 22 23echo$(find "$GIT_DIR/objects"/?? -type f -print 2>/dev/null | wc -l) objects, \ 24$({ 25echo0 26# "no-such" is to help Darwin folks by not using xargs -r. 27find"$GIT_DIR/objects"/?? -type f -print2>/dev/null | 28xargs du -k"$GIT_DIR/objects/no-such"2>/dev/null | 29sed-e's/[ ].*/ +/' 30echo p 31} |dc) kilobytes