git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Searching for sha1 id, finding a specific commit
@ 2010-06-08 11:50 Bjarne
  2010-06-08 11:58 ` Andreas Ericsson
  0 siblings, 1 reply; 2+ messages in thread
From: Bjarne @ 2010-06-08 11:50 UTC (permalink / raw
  To: git

I've searched a lot trying to find is there are a way to find a specific commit.
Use case:
I fixed a bug and want to paste a unique direct link in my bugtracker tool to
the commit, or simple one click search in gitweb.

Since the commit name is not unique, this isn't good enough. I'm sure there is a
way but i cant find it.

Regards Bjarne

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

* Re: Searching for sha1 id, finding a specific commit
  2010-06-08 11:50 Searching for sha1 id, finding a specific commit Bjarne
@ 2010-06-08 11:58 ` Andreas Ericsson
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Ericsson @ 2010-06-08 11:58 UTC (permalink / raw
  To: Bjarne; +Cc: git

On 06/08/2010 01:50 PM, Bjarne wrote:
> I've searched a lot trying to find is there are a way to find a specific commit.
> Use case:
> I fixed a bug and want to paste a unique direct link in my bugtracker tool to
> the commit, or simple one click search in gitweb.
> 
> Since the commit name is not unique, this isn't good enough. I'm sure there is a
> way but i cant find it.
> 

git log --grep="something you wrote in the commit message"
  or
git log -S'something you wrote in the patch'

should, with some searching from within less, provide you
with the unique sha1 id which you can then use to construct
a url to gitweb.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

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

end of thread, other threads:[~2010-06-08 11:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-08 11:50 Searching for sha1 id, finding a specific commit Bjarne
2010-06-08 11:58 ` Andreas Ericsson

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).