I am reading about the pros and cons of squashing commits in Git before crafting a pull request. What I did not find information about is, whether a pull request with squashed commits is more or less likely to turn into a merge conflict if other pull requests are merged into the master while the pull request in question is postponed. I can imagine different scenarios:
- With a lot of small commits, merge tools can tell easier how things belong together and merge conflicts are less likely. A “merge conflict” can be “resolved” into smaller units, which do not conflict, if considered one by one.
- With a lot of small commits, merge tools can consider an intermediate commit unmergable already even if a later commit would fix it. (Feels a bit odd.)
- Technically, it does not make any difference, because the merge tools only look at the last commit anyway.
Which thereof is true, or is the thing even more complicated? (Like, depending on the kind of change?)