Given a blob sha1, is there a simple way to find which file it corresponds to and which commit it is contained?
-- Ping Yin
threads / discuss / 11426
Subject: How to find a commit containing a given sha1
Given a blob sha1, is there a simple way to find which file it corresponds to and which commit it is contained?
-- Ping Yin
Re: How to find a commit containing a given sha1
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