+"$1$2$3")
+ echo "Auto-merging $4"
+ orig=$(unpack-file $1)
+ src1=$(unpack-file $2)
+ src2=$(unpack-file $3)
+ merge "$src2" "$orig" "$src1"
+ ret=$?
+ if [ "$6" != "$7" ]; then
+ echo "ERROR: Permissions $5->$6->$7 don't match merging $src2"
+ if [ $ret -ne 0 ]; then
+ echo "ERROR: Leaving conflict merge in $src2"
+ fi
+ exit 1
+ fi
+ chmod -- "$6" "$src2"
+ if [ $ret -ne 0 ]; then
+ echo "ERROR: Leaving conflict merge in $src2"
+ exit 1
+ fi
+ cp -- "$src2" "$4" && chmod -- "$6" "$4" && update-cache --add -- "$4" && exit 0
+ ;;
+
+*)
+ echo "Not handling case $1 -> $2 -> $3"
+ ;;
+esac
+exit 1