mirror of
https://github.com/git/git.git
synced 2024-11-06 09:13:01 +01: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
|