From: Frans Pop Date: Wed, 27 Jan 2010 13:26:05 GMT Subject: Re: Testing if a certain commit is in the current branch Message-ID: <201001271426.06844.elendil@planet.nl> In-Reply-To: <20100127101943.GA4470@progeny.tock> On Wednesday 27 January 2010, Jonathan Nieder wrote: > Frans Pop wrote: > > The use case is a wrapper script for kernel builds in which some > > variation are needed (due to changes in the build system) when > > building older kernels, e.g. during bisections or when building older > > stable updates. So I test for the presence of commits that introduced > > relevant changes. > > Neat idea. How about this (untested)? > > git rev-list ^HEAD --no-walk commit1 commit2 ... Does not seem to work. But I'd be interested if you find a variant that does as it's very fast. Thanks, FJP