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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alex Bennee <kernel-hacker@xxxxxxxxxx> 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.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux