Perform the following steps to see the difference between the branches:
- Diff origin/stable-3.1 with the origin/stable-3.2 branch:
$ git diff --name-only origin/stable-3.1 origin/stable-3.2 org.eclipse.jgit/src/org/eclipse/jgit/transport/org.eclipse.jgit/src/org/eclipse/jgit/transport/BasePackFetch
More output..
- We are building the command in this pattern, that is, git diff [options] <commit> <commit> <path>. Then, we can diff what we care about while looking into the differences between branches. This is very useful if you are responsible for a subset of the source code, and you wish to diff that area only.
- Let's try the same diff between branches, but this time we will diff the entire branches, not just a sub-directory; ...