]>
Commit | Line | Data |
---|---|---|
30f610b7 SP |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 2006, Shawn O. Pearce | |
4 | # | |
5 | # Cleanup unreachable files and optimize the repository. | |
6 | ||
7 | USAGE='' | |
8 | SUBDIRECTORY_OK=Yes | |
9 | . git-sh-setup | |
10 | ||
11 | git-pack-refs --prune && | |
12 | git-reflog expire --all && | |
a3c11db9 | 13 | git-repack -a -d -l && |
30f610b7 SP |
14 | git-prune && |
15 | git-rerere gc || exit |