mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
![Junio C Hamano](/assets/img/avatar_default.png)
Otherwise we would end up slurping objects we borrow from alternates. Signed-off-by: Junio C Hamano <junkio@cox.net>
16 lines
265 B
Bash
Executable file
16 lines
265 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2006, Shawn O. Pearce
|
|
#
|
|
# Cleanup unreachable files and optimize the repository.
|
|
|
|
USAGE=''
|
|
SUBDIRECTORY_OK=Yes
|
|
. git-sh-setup
|
|
|
|
git-pack-refs --prune &&
|
|
git-reflog expire --all &&
|
|
git-repack -a -d -l &&
|
|
git-prune &&
|
|
git-rerere gc || exit
|