зеркало из https://github.com/microsoft/git.git
Merge branch 'pr/mergetool'
* pr/mergetool: Open external merge tool with original file extensions for all three files
This commit is contained in:
Коммит
05e74f4111
|
@ -152,10 +152,11 @@ merge_file () {
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BACKUP="$path.BACKUP.$$"
|
ext="$$$(expr "$path" : '.*\(\.[^/]*\)$')"
|
||||||
LOCAL="$path.LOCAL.$$"
|
BACKUP="$path.BACKUP.$ext"
|
||||||
REMOTE="$path.REMOTE.$$"
|
LOCAL="$path.LOCAL.$ext"
|
||||||
BASE="$path.BASE.$$"
|
REMOTE="$path.REMOTE.$ext"
|
||||||
|
BASE="$path.BASE.$ext"
|
||||||
|
|
||||||
mv -- "$path" "$BACKUP"
|
mv -- "$path" "$BACKUP"
|
||||||
cp -- "$BACKUP" "$path"
|
cp -- "$BACKUP" "$path"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче