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