fixup-builtinson commit git-p4: Unset P4DIFF environment variable when using 'p4 -du diff' (67abd41)
   1#!/bin/sh
   2while [ "$1" ]
   3do
   4        old="$1"
   5        new=$(echo "$1" | sed 's/git-/git /')
   6        echo "Converting '$old' to '$new'"
   7        git ls-files '*.sh' | while read file
   8        do
   9                sed "s/\\<$old\\>/$new/g" < $file > $file.new
  10                chmod --reference=$file $file.new
  11                mv $file.new $file
  12        done
  13        shift
  14done
  15git update-index --refresh >& /dev/null
  16exit 0