Re: Testing if a certain commit is in the current branch
- From
- Dale Farnsworth <dale@farnsworth.org>
- Date
- Jan 27, 2010, 15:15 UTC
- Message-ID
- <E1Na9ca-0004x2-Gf@xyzzy.farnsworth.org>
- 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