I’m attempting to determine the changed files between two different branches and what I’ve found is an anomaly that I can’t recreate on the git on Windows.
The scenario:
- Create a repository - branch master
- add some files, git add/commit
- Create a new branch - B1
- add a file, change an existing
- git add/commit
- git diff --name-status master…B1
- works great as does the reverse
- Create a new branch from B1 -> B2
- add/remove/change files
- git add/commit
- git diff --name-status B2…master
- the results that I’m seeing are the diff for B1 and B2 but NOT B2 and master.
Is this a known issue? Thoughts/suggestions?
Is there a better way to get the list of files changed (add/rename/delete/update) between two branches?