Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC PATCH] Implement vc-git-annotate-show-diff-revision-at-line for emacs vc-git

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:15

Alex Bennee [off-list ref] writes:
Whats the easiest command to show the parent commit of a given commit id
(the closest analogy I can think of)? I tried:

 git-show 486a974a --pretty="format:%P"
 * Have rev before option, like "git show --pretty=... 486a974"

 * Use -s to squelch diff output.

You should check how the %P format shows parents for a merge and
decide which parent you would want to follow.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help