Merge branch 'pr/mergetool'

* pr/mergetool:
  Open external merge tool with original file extensions for all three files
maint
Junio C Hamano 2007-12-09 01:01:50 -08:00
commit 05e74f4111
1 changed files with 5 additions and 4 deletions

View File

@ -152,10 +152,11 @@ merge_file () {
exit 1
fi

BACKUP="$path.BACKUP.$$"
LOCAL="$path.LOCAL.$$"
REMOTE="$path.REMOTE.$$"
BASE="$path.BASE.$$"
ext="$$$(expr "$path" : '.*\(\.[^/]*\)$')"
BACKUP="$path.BACKUP.$ext"
LOCAL="$path.LOCAL.$ext"
REMOTE="$path.REMOTE.$ext"
BASE="$path.BASE.$ext"

mv -- "$path" "$BACKUP"
cp -- "$BACKUP" "$path"