git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Searching for sha1 id, finding a specific commit

From
Andreas Ericsson <ae@op5.se>
Date
Jun 8, 2010, 11:58 UTC
Message-ID
<4C0E305E.80704@op5.se>
In-Reply-To
<loom.20100608T134934-783@post.gmane.org>
On 06/08/2010 01:50 PM, Bjarne wrote:
Show 8 quoted lines
> 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.
Previous: Bjarne
Message 2 of 2 in “Searching for sha1 id, finding a specific commit”
  1. BjarneJun 8, 2010
  2. Andreas EricssonJun 8, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.