Revision e636106c76e0273334940d899de1c928d08b29e8 authored by Junio C Hamano on 26 June 2008, 00:09:40 UTC, committed by Junio C Hamano on 26 June 2008, 00:13:48 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent df79b9f
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