mirror of
https://github.com/git/git.git
synced 2024-11-15 15:14:16 +01:00
a3c11db9ec
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
|