git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Testing if a certain commit is in the current branch
@ 2010-01-27  7:19 Frans Pop
  2010-01-27  7:24 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Frans Pop @ 2010-01-27  7:19 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-01-27 16:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27  7:19 Testing if a certain commit is in the current branch Frans Pop
2010-01-27  7:24 ` Junio C Hamano
2010-01-27  8:36   ` Frans Pop
2010-01-27 10:19     ` Jonathan Nieder
2010-01-27 13:26       ` Frans Pop
2010-01-27 15:15         ` Dale Farnsworth
2010-01-27 15:39           ` Frans Pop
2010-01-27 15:08     ` Petr Baudis
2010-01-27 15:27       ` Frans Pop
2010-01-27  8:26 ` Matthieu Moy
2010-01-27  8:47   ` Frans Pop
2010-01-27  8:56 ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).