From: Dale Farnsworth Date: Wed, 27 Jan 2010 15:15:56 GMT Subject: Re: Testing if a certain commit is in the current branch Message-ID: In-Reply-To: <201001271426.06844.elendil@planet.nl> > > 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. I've been using the following. It produces output only if the commit is NOT in HEAD. git rev-list -1 ^HEAD commitID -Dale