All of lore.kernel.org
 help / color / mirror / Atom feed
* determine if one commit is an ancestor of another
@ 2009-07-09 17:13 Larry D'Anna
  2009-07-09 17:16 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: Larry D'Anna @ 2009-07-09 17:13 UTC (permalink / raw)
  To: git

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

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

* Re: determine if one commit is an ancestor of another
  2009-07-09 17:13 determine if one commit is an ancestor of another Larry D'Anna
@ 2009-07-09 17:16 ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2009-07-09 17:16 UTC (permalink / raw)
  To: Larry D'Anna; +Cc: git

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

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

end of thread, other threads:[~2009-07-09 17:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-09 17:13 determine if one commit is an ancestor of another Larry D'Anna
2009-07-09 17:16 ` Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.