{"thread":{"id":"20065","subject":"determine if one commit is an ancestor of another","startedAt":"2009-07-09T17:13:51Z","lastAt":"2009-07-09T17:16:41Z","messageCount":2,"participants":["Larry D'Anna","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"117708","messageId":"20090709171351.GA30088@cthulhu","threadId":"20065","inReplyTo":null,"subject":"determine if one commit is an ancestor of another","fromName":"Larry D'Anna","fromEmail":"larry@elder-gods.org","sentAt":"2009-07-09T17:13:51Z","receivedAt":"2009-07-09T17:13:51Z","isPatch":false,"sender":{"key":"larry@elder-gods.org","avatar":"https://avatars.githubusercontent.com/u/3013304?v=4"},"body":"Is there any builtin to do this?  I'm doing it in a perl script now by parsing\ngit log --pretty=raw, but it's pretty slow for a big repository.\n\n    --larry\n"},{"id":"117710","messageId":"alpine.DEB.1.00.0907091916090.4339@intel-tinevez-2-302","threadId":"20065","inReplyTo":"20090709171351.GA30088@cthulhu","subject":"Re: determine if one commit is an ancestor of another","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2009-07-09T17:16:41Z","receivedAt":"2009-07-09T17:16:41Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 9 Jul 2009, Larry D'Anna wrote:\n\n> Is there any builtin to do this?  I'm doing it in a perl script now by \n> parsing git log --pretty=raw, but it's pretty slow for a big repository.\n\ntest $ancestor = $(git merge-base $ancestor $descendant)\n\nCiao,\nDscho\n"}]}