Staging
v0.5.1
Revision 3ffb58be0a779b47e1e4d3ea584ba301461a3a77 authored by Jeff King on 24 April 2008, 01:28:36 UTC, committed by Junio C Hamano on 25 April 2008, 04:50:19 UTC
It seems to be a FAQ that people try running git-gc, and
then get puzzled about why the size of their .git directory
didn't change. This note mentions the reasons why things
might unexpectedly get kept.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d6958a1
Raw File
fixup-builtins
#!/bin/sh
while [ "$1" ]
do
	old="$1"
	new=$(echo "$1" | sed 's/git-/git /')
	echo "Converting '$old' to '$new'"
	git ls-files '*.sh' | while read file
	do
		sed "s/\\<$old\\>/$new/g" < $file > $file.new
		chmod --reference=$file $file.new
		mv $file.new $file
	done
	shift
done
git update-index --refresh >& /dev/null
exit 0
back to top