git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git show -m with a parent number
@ 2016-03-27 20:46 Anatoly Borodin
  2016-03-28 19:16 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Anatoly Borodin @ 2016-03-27 20:46 UTC (permalink / raw)
  To: git

Hi All,


is there a good reason for `git show -m` to not accept the number of a
parent of a merge commit? I can run `git show --first-parent COMMIT`,
but need to write `git diff COMMIT^2 COMMIT` every time I want to diff
with the second parent!

`git cherry-pick -m 2 COMMIT` works, so why can't `git log` work like
that?


-- 
Mit freundlichen Grüßen,
Anatoly Borodin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-03-30 16:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-27 20:46 git show -m with a parent number Anatoly Borodin
2016-03-28 19:16 ` Jeff King
2016-03-28 19:31   ` Junio C Hamano
2016-03-30 12:31   ` Anatoly Borodin
2016-03-30 16:55     ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).