gregsexton / gitv

gitk for Vim.
936 stars 59 forks source link

Parent command with count other than 1 not working #116

Closed wyne closed 7 years ago

wyne commented 7 years ago

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

rbong commented 7 years ago

Should be fixed with the merge, please comment if issue persists