Using the p command with a count of 2 lands on a line that is not the second parent.
normal p Jumps the cursor to the commit which is the parent of
current line. When on a merge commit, a |count|
may be used to choose a parent other than the first.
Here's a visualization:
* [36e496edd] Merge commit <-- Selected commit
|\ <-- Actual destination after `2p`
| * [840c62324] Second Parent <-- Desired destination after `2p`
* [01008770c] First parent <-- Actual destination after `p` or `1p`
And here's the metadata from SHA 36e496edd:
tree 6de5973ef284c1024deac52c12785a087a2cf23f
parent 01008770cc4fecbeae4b01a3cb7f38832e1e302d
parent 840c62324807e7451c9d16dd16ef67890aba625c
Tested against
NVIM v0.2.0-870-g6a68a922
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Jan 12 2017 08:48:31)
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 15 2016 01:33:29)
Using the
p
command with acount
of2
lands on a line that is not the second parent.Here's a visualization:
And here's the metadata from SHA 36e496edd:
Tested against