I'm trying to use emacs ediff as a git difftool.
I have followed some of the configurations proposed here: Using ediff as git mergetool
When it comes to comparing between different git revisions of a certain file, I have not problem at all: ediff works well and the differences between both versions are depicted properly.
However, I'm having problems when I try to run git difftool to compare the current directory version of a file with a certain git revision. For some files, I'm getting the following error:
apply: Wrong type argument: arrayp, nil
It is weird, because this error only comes for certain files, not all of them.
I have experimented with several files, and I think that the rule of thumb is as follows: - If the file to be compared is not placed in the git root directory, then it fails. - Otherwise, ediff shows the differences between the current version of the file and the specified revision without any problem.
I have tried with some of the configurations explained in the link I referred to above. All of them give me the same result: git difftool fails when comparing the current directory version of a non-root git file with a certain git revision.
Any idea how this can be fixed?
Thanks a lot. -Bob