Revision 73c838e4c9437a0c41082c32a3a832aa385460a9 authored by Junio C Hamano on 08 January 2007, 10:08:47 UTC, committed by Junio C Hamano on 08 January 2007, 11:02:11 UTC
We used to say "you are not on a branch" before the initial
commit.  This is incorrect -- the user is on a branch yet to be
born, but its name has been already determined.

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 6488610
Raw File
git-gc.sh
#!/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
back to top