determine if one commit is an ancestor of another

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

determine if one commit is an ancestor of another

From: Larry D'Anna <hidden>
Date: 2016-06-15 22:47:02

Is there any builtin to do this?  I'm doing it in a perl script now by parsing
git log --pretty=raw, but it's pretty slow for a big repository.

    --larry

Re: determine if one commit is an ancestor of another

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:47:02

Hi,

On Thu, 9 Jul 2009, Larry D'Anna wrote:
Is there any builtin to do this?  I'm doing it in a perl script now by 
parsing git log --pretty=raw, but it's pretty slow for a big repository.
test $ancestor = $(git merge-base $ancestor $descendant)

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help