3 USAGE='[-n] [--] [<head>...]'
8 while case "$#" in 0) break ;; esac
11 -n) dryrun=-n echo=echo ;;
21 0) git-fsck-objects --full --cache --unreachable ;;
22 *) git-fsck-objects --full --cache --unreachable $(git-rev-parse --all) "$@" ;;
25 sed -ne '/unreachable /{
26 s/unreachable [^ ][^ ]* //
29 cd "$GIT_OBJECT_DIRECTORY" || exit
31 rmdir 2>/dev/null [0-9a-f][0-9a-f]
34 git-prune-packed $dryrun
36 redundant=$(git-pack-redundant --all)
37 if test "" != "$redundant"
39 if test "" = "$dryrun"
41 echo "$redundant" | xargs rm -f
43 echo rm -f "$redundant"