git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andreas Ericsson <ae@op5.se>
To: Bjarne <bjarne_l@yahoo.se>
Cc: git@vger.kernel.org
Subject: Re: Searching for sha1 id, finding a specific commit
Date: Tue, 08 Jun 2010 13:58:22 +0200	[thread overview]
Message-ID: <4C0E305E.80704@op5.se> (raw)
In-Reply-To: <loom.20100608T134934-783@post.gmane.org>

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.

      reply	other threads:[~2010-06-08 11:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-08 11:50 Searching for sha1 id, finding a specific commit Bjarne
2010-06-08 11:58 ` Andreas Ericsson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C0E305E.80704@op5.se \
    --to=ae@op5.se \
    --cc=bjarne_l@yahoo.se \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).