mirror of
https://github.com/git/git
synced 2024-10-30 13:20:15 +00:00
a3c11db9ec
Otherwise we would end up slurping objects we borrow from alternates. Signed-off-by: Junio C Hamano <junkio@cox.net>
15 lines
265 B
Bash
Executable file
15 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
|