Please help me understand why the git log shows an additional purple line for a merge into the develop branch.
We use gitflow so the blue line represents commits directly to develop. The yellow line is the master branch were we merge in releases. The other lines are releases or hotfixes.
In this scenario the bright green line was a hotfix created off of the master branch. There was one commit on the hotfix branch and then it was "finished" (i.e. merged into develop and master). The commit for the merge in master makes sense to me since I see the bright green line merge into the yellow (master) line. What doesn't make sense to me is the introduction of the pink line which shows the merge of the hotfix branch into the develop branch. I would expect the bright green line terminate into the blue line. The graph makes it look like develop was branched at the "Throw exception" commit when it wasn't.
git log looks similar (there is a dark blue line in there that's hard to see).
I have a theory but I wanted this to be confirmed. When I committed the change "Added Raygun integration" locally, there was an outstanding change that I hadn't fetched and merged in from origin (the hot fix integration). I think the pink line shows a diverge because the "Added Raygun integation" commit was before I merged the hot fix commit. The develop branch was then reintegrated when I merged origin into my local and pushed. If this is the case, if I had pulled the outstanding commit from origin first, then committed my change, would the "Merge branch 'hotfix/2.5.1' commit show merging to the blue line?