Different result between JGit diff and git diff I’m trying to get differences of two commits in Java by JGit library. Here is my code: