I know there are a lot of questions about diffing a file in two git branches, but this is NOT what I'm asking.
I want to diff two different files in two different git branches.
The use-case is: I've got a Java file (Request.java
) that was converted to Kotlin (Request.kt
).
In the current branch (current
) there is the Kotlin version, in the default branch (master
), there is the Java version.
I want to diff the two files to see what changed, but Git doesn't know they are the same files (most of the contents have changed, as well as the name -- Git did not recognize the modification as a renaming).
What can I do?
EDIT. This is NOT a duplicate of the question that was tagged. This asks about two DIFFERENT files, not how diffing the SAME file in TWO branches.