1#!/bin/sh
2#
3# Copyright (c) 2006, Shawn O. Pearce
4#
5# Cleanup unreachable files and optimize the repository.
67
USAGE=''
8SUBDIRECTORY_OK=Yes
9. git-sh-setup
1011
git-pack-refs --prune &&
12git-reflog expire --all &&
13git-repack -a -d -l &&
14git-prune &&
15git-rerere gc || exit