3 : ${GIT_OBJECT_DIRECTORY="$GIT_DIR/objects"}
5 packname=$(git-rev-list --unpacked --objects $(git-rev-parse --all) |
6 git-pack-objects --non-empty --incremental .tmp-pack) ||
8 if [ -z "$packname" ]; then
9 echo Nothing new to pack
12 mv .tmp-pack-$packname.pack "$GIT_OBJECT_DIRECTORY/pack/pack-$packname.pack"
13 mv .tmp-pack-$packname.idx "$GIT_OBJECT_DIRECTORY/pack/pack-$packname.idx"