From: Jonathan Nieder Date: Wed, 27 Jan 2010 10:19:43 GMT Subject: Re: Testing if a certain commit is in the current branch Message-ID: <20100127101943.GA4470@progeny.tock> In-Reply-To: <201001270936.14935.elendil@planet.nl> 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 ...