6 ms·
If I checkout the merge commit and then do a ‘git log -n 5’, which parent pointer is followed to show the previous commit logs? A or B or Both / all if it is mo
by hackernews1134 3y ago
If I checkout the merge commit and then do a ‘git log -n 5’, which parent pointer is followed to show the previous commit logs? A or B or Both / all if it is more than a 2-way merge?
- baronswindle 3y agoAs I recall, it shows commits from both parents in order of the committed date.
- paulddraper 3y agoBy default it's by commit date. Other ordering is possible, e.g. --topo-order