I want to use an alternative diff algorithm for special file extension, e.g. ".java" and the standart diff algorithm for other files.
I can make it via .gitattributes file:
*.java diff=javadiffprogramm
and .gitconfig file:
[diff "javadiffprogramm"]
command = pathToDiffProgram.
My question is what is the format of input parameters of "javadiffprogramm" and where it should output the result of diff? The result of diff has the format like "@@ -1,7 +1,6 @@...".
Some questions on this topic: