I'm merging branches. Some commits on the from
branch will cause merge conflicts, and others won't. I'd like to know which will cause conflicts*, so I can decide what point to merge to. For example, something like:
# History
F (branch to) G (branch from)
| |
D E
| |
B C
\ /
-----A-----
$ git checkout to
$ git find-merge-conflicts from
C ✓
|
E ✗ (3 conflicts)
|
G ✗ (1 conflict)
Does something like this exist?
I looked at git-imerge. It allows me to see this information in a way, as I incrementally merge each commit, but I'm not sure if I can use it to do this query without actually merging.
*By "cause conflicts", I mean running git merge ref
will cause conflicted files that need resolution.