3 . git-sh-setup || die "Not a git archive"
7 while case "$#" in 0) break ;; esac
10 -n) dryrun=-n echo=echo ;;
12 -*) echo >&2 "usage: git-prune [ -n ] [ heads... ]"; exit 1 ;;
18 git-fsck-objects --full --cache --unreachable "$@" |
19 sed -ne '/unreachable /{
20 s/unreachable [^ ][^ ]* //
23 cd "$GIT_OBJECT_DIRECTORY" || exit
27 git-prune-packed $dryrun