Testing if a certain commit is in the current branch
- From
- Frans Pop <elendil@planet.nl>
- Date
- Jan 27, 2010, 07:19 UTC
- Message-ID
- <201001270819.39819.elendil@planet.nl>
I'm currently using the following command for this: git log --pretty=format:%H | grep -q '^<commit id>"
Problem is that with large repos that can be quite slow.
Is there a faster way to do the test?
TIA, FJP