On 9/27/07, Junio C Hamano <gitster@xxxxxxxxx> wrote: > "Kelvie Wong" <kelvie@xxxxxxxx> writes: > > > I've tried all of the ones that were supported, the result is the same > > -- blank files in all three windows. > > > > It is because git mergetool fails to generate these files for whatever > > reason (the filebasename.{REMOTE,LOCAL,BASE}.* files). I don't know > > why this happens. > > Can you run git-mergetool under "sh -x"? > > That is, > > $ sh -x git-mergetool > > around ll.160-170 these files are created. > ####################################### $ sh -x /usr/local/bin/git-mergetool --tool=meld + USAGE=[--tool=tool] [file to merge] ... + SUBDIRECTORY_OK=Yes + . git-sh-setup + unset CDPATH + [ -z ] + LONG_USAGE=Usage: /usr/local/bin/git-mergetool [--tool=tool] [file to merge] ... + [ -z Yes ] + git rev-parse --git-dir + GIT_DIR=/home/kelvie/src/trunk/.git + test -n /home/kelvie/src/trunk/.git + cd /home/kelvie/src/trunk/.git + pwd + GIT_DIR=/home/kelvie/src/trunk/.git + : /home/kelvie/src/trunk/.git/objects + require_work_tree + git rev-parse --is-inside-work-tree + test true = true + expr z--tool=meld : z-[^=]*=\(.*\) + merge_tool=meld + shift + break + test -z meld + test -z meld + type meld + test 0 -eq 0 + git ls-files -u + sed -e s/^[^ ]* // + sort -u + files=fmeprompter/src/qfmeparameterfloat.cpp fmeprompter/src/qfmeparameterfloat.h fmeprompter/src/qfmeparameterinteger.cpp fmeprompter/src/qfmeparameterinteger.h + test -z fmeprompter/src/qfmeparameterfloat.cpp fmeprompter/src/qfmeparameterfloat.h fmeprompter/src/qfmeparameterinteger.cpp fmeprompter/src/qfmeparameterinteger.h + echo Merging the files: fmeprompter/src/qfmeparameterfloat.cpp fmeprompter/src/qfmeparameterfloat.h fmeprompter/src/qfmeparameterinteger.cpp fmeprompter/src/qfmeparameterinteger.h Merging the files: fmeprompter/src/qfmeparameterfloat.cpp fmeprompter/src/qfmeparameterfloat.h fmeprompter/src/qfmeparameterinteger.cpp fmeprompter/src/qfmeparameterinteger.h + git ls-files -u + sed -e s/^[^ ]* // + sort -u + read i + printf \n + merge_file fmeprompter/src/qfmeparameterfloat.cpp + path=fmeprompter/src/qfmeparameterfloat.cpp + git ls-files -u -- fmeprompter/src/qfmeparameterfloat.cpp + f=100644 bd66831cc4c3fb2907bba0fa9bef6d3e696bf0a3 1 fmeprompter/src/qfmeparameterfloat.cpp 100644 10026c1391fc34485b54727f831ebecfde8711a5 2 fmeprompter/src/qfmeparameterfloat.cpp 100644 0d2e9decf73ae5f5e4143f3181b7c8435c20416c 3 fmeprompter/src/qfmeparameterfloat.cpp + test -z 100644 bd66831cc4c3fb2907bba0fa9bef6d3e696bf0a3 1 fmeprompter/src/qfmeparameterfloat.cpp 100644 10026c1391fc34485b54727f831ebecfde8711a5 2 fmeprompter/src/qfmeparameterfloat.cpp 100644 0d2e9decf73ae5f5e4143f3181b7c8435c20416c 3 fmeprompter/src/qfmeparameterfloat.cpp + BACKUP=fmeprompter/src/qfmeparameterfloat.cpp.BACKUP.4697 + LOCAL=fmeprompter/src/qfmeparameterfloat.cpp.LOCAL.4697 + REMOTE=fmeprompter/src/qfmeparameterfloat.cpp.REMOTE.4697 + BASE=fmeprompter/src/qfmeparameterfloat.cpp.BASE.4697 + mv -- fmeprompter/src/qfmeparameterfloat.cpp fmeprompter/src/qfmeparameterfloat.cpp.BACKUP.4697 + cp -- fmeprompter/src/qfmeparameterfloat.cpp.BACKUP.4697 fmeprompter/src/qfmeparameterfloat.cpp + git ls-files -u -- fmeprompter/src/qfmeparameterfloat.cpp + awk {if ($3==1) print $1;} + base_mode=100644 + git ls-files -u -- fmeprompter/src/qfmeparameterfloat.cpp + awk {if ($3==2) print $1;} + local_mode=100644 + git ls-files -u -- fmeprompter/src/qfmeparameterfloat.cpp + awk {if ($3==3) print $1;} + remote_mode=100644 + base_present + test -n 100644 + git cat-file blob :1:fmeprompter/src/qfmeparameterfloat.cpp + local_present + test -n 100644 + git cat-file blob :2:fmeprompter/src/qfmeparameterfloat.cpp + remote_present + test -n 100644 + git cat-file blob :3:fmeprompter/src/qfmeparameterfloat.cpp + test -z 100644 -o -z 100644 + is_symlink 100644 + test 100644 = 120000 + is_symlink 100644 + test 100644 = 120000 + echo Normal merge conflict for 'fmeprompter/src/qfmeparameterfloat.cpp': Normal merge conflict for 'fmeprompter/src/qfmeparameterfloat.cpp': + describe_file 100644 local fmeprompter/src/qfmeparameterfloat.cpp.LOCAL.4697 + mode=100644 + branch=local + file=fmeprompter/src/qfmeparameterfloat.cpp.LOCAL.4697 + printf {%s}: local {local}: + test -z 100644 + is_symlink 100644 + test 100644 = 120000 + base_present + test -n 100644 + echo modified modified + describe_file 100644 remote fmeprompter/src/qfmeparameterfloat.cpp.REMOTE.4697 + mode=100644 + branch=remote + file=fmeprompter/src/qfmeparameterfloat.cpp.REMOTE.4697 + printf {%s}: remote {remote}: + test -z 100644 + is_symlink 100644 + test 100644 = 120000 + base_present + test -n 100644 + echo modified modified + printf Hit return to start merge resolution tool (%s): meld Hit return to start merge resolution tool (meld): + read ans + touch fmeprompter/src/qfmeparameterfloat.cpp.BACKUP.4697 + meld -- fmeprompter/src/qfmeparameterfloat.cpp.LOCAL.4697 fmeprompter/src/qfmeparameterfloat.cpp fmeprompter/src/qfmeparameterfloat.cpp.REMOTE.4697 And then meld starts up, with the original file in the middle, and two blank files on the side, LOCAL and REMOTE respectively. -- Kelvie - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html