I was just commiting some changes I’ve done to a project on a branch and I discovered that git assigned the wrong parent to my commit.
As you can see:
tig shows me that the highlighted commit(the one that was done on the current branch TODAY with the message redirect user after login) comes from a merge done two days ago, which is wrong because if I checkout the feature-loose-logging branch I can’t see that commit there.
So my commit should have been placed right after added license commit.
Why does git chose to assign a parent on the feature-loose-logging branch?
You are wrong, tig doesn’t show you that “the highlighted commit comes from a merge done two days ago”. Please examine the graph more carefully.