3 # Copyright (c) 2006, Shawn O. Pearce
5 # Cleanup unreachable files and optimize the repository.
12 while case $# in 0) break ;; esac
25 case "$(git config --get gc.packrefs)" in
27 test $
(is_bare_repository
) = true || pack_refs
=true
;;
29 pack_refs
=$
(git config
--bool --get gc.packrefs
)
32 test "true" != "$pack_refs" ||
33 git pack-refs
--prune &&
34 git reflog expire
--all &&
35 git-repack
-a -d -l &&
36 $no_prune git prune
&&