Merge branch 'da/mergetool-temporary-filename'
Tweak the names of the three throw-away files "git mergetool" comes up with to feed the merge tool backend, so that a file with a single dot in its name in the original (e.g. "hello.c") will have only one dot in these variants (e.g. "hello_BASE_4321.c"). * da/mergetool-temporary-filename: mergetool: use more conservative temporary filenames
This commit is contained in:
commit
02f4db83bd
@ -228,11 +228,17 @@ merge_file () {
|
||||
return 1
|
||||
fi
|
||||
|
||||
ext="$$$(expr "$MERGED" : '.*\(\.[^/]*\)$')"
|
||||
BACKUP="./$MERGED.BACKUP.$ext"
|
||||
LOCAL="./$MERGED.LOCAL.$ext"
|
||||
REMOTE="./$MERGED.REMOTE.$ext"
|
||||
BASE="./$MERGED.BASE.$ext"
|
||||
if BASE=$(expr "$MERGED" : '\(.*\)\.[^/]*$')
|
||||
then
|
||||
ext=$(expr "$MERGED" : '.*\(\.[^/]*\)$')
|
||||
else
|
||||
BASE=$MERGED
|
||||
ext=
|
||||
fi
|
||||
BACKUP="./${BASE}_BACKUP_$$$ext"
|
||||
LOCAL="./${BASE}_LOCAL_$$$ext"
|
||||
REMOTE="./${BASE}_REMOTE_$$$ext"
|
||||
BASE="./${BASE}_BASE_$$$ext"
|
||||
|
||||
base_mode=$(git ls-files -u -- "$MERGED" | awk '{if ($3==1) print $1;}')
|
||||
local_mode=$(git ls-files -u -- "$MERGED" | awk '{if ($3==2) print $1;}')
|
||||
|
Loading…
Reference in New Issue
Block a user