1#!/bin/sh
2while [ "$1" ]
3do
4if [ "$1" != "git-sh-setup" -a "$1" != "git-parse-remote" -a "$1" != "git-svn" ]; then
5old="$1"
6new=$(echo "$1" | sed 's/git-/git /')
7echo "Converting '$old' to '$new'"
8sed -i "s/\\<$old\\>/$new/g" $(git ls-files '*.sh')
9fi
10shift
11done
1213
sed -i 's/git merge-one-file/git-merge-one-file/g
14s/git rebase-todo/git-rebase-todo/g' $(git ls-files '*.sh')
15git update-index --refresh >& /dev/null
16exit 0