git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to find a commit containing a given sha1
       [not found] <46dff0320712300238p67e82c66r5bf49900dd21aefa@mail.gmail.com>
@ 2007-12-30 10:39 ` Ping Yin
  2007-12-30 10:56   ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: Ping Yin @ 2007-12-30 10:39 UTC (permalink / raw)
  To: Git Mailing List

Given a blob sha1, is there a simple way to find which file it
corresponds to and which commit it is contained?

-- 
Ping Yin

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

* Re: How to find a commit containing a given sha1
  2007-12-30 10:39 ` How to find a commit containing a given sha1 Ping Yin
@ 2007-12-30 10:56   ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2007-12-30 10:56 UTC (permalink / raw)
  To: Ping Yin; +Cc: Git Mailing List

Hi,

On Sun, 30 Dec 2007, Ping Yin wrote:

> Given a blob sha1, is there a simple way to find which file it 
> corresponds to and which commit it is contained?

Yes.  "git log --raw --abbrev=40 --all" and then search for the blob name 
(SHA-1).

Hth,
Dscho

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

end of thread, other threads:[~2007-12-30 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <46dff0320712300238p67e82c66r5bf49900dd21aefa@mail.gmail.com>
2007-12-30 10:39 ` How to find a commit containing a given sha1 Ping Yin
2007-12-30 10: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).