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 if redundant
=$
(git-pack-redundant
--all 2>/dev
/null
) && test "" != "$redundant"
38 if test "" = "$dryrun"
40 echo "$redundant" |
xargs rm -f
42 echo rm -f "$redundant"