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

Re: Determine Blob ID from Commit ID and File Path

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 25, 2009, 19:07 UTC
Message-ID
<7vhby49loe.fsf@alter.siamese.dyndns.org>
In-Reply-To
<C66917DD.29BF%dirk.sigurdson@t-mobile.com>
"Sigurdson, Dirk" <Dirk.Sigurdson@T-Mobile.com> writes:
> Given a commit id and the path to a file, I¹d like to be able to determine
> the blob id for the file.  Is there a git command that would provide this
> info?
"git rev-parse $commit:$path"?
Previous: Sigurdson, Dirk
Message 2 of 2 in “Determine Blob ID from Commit ID and File Path”
  1. Sigurdson, DirkJun 25, 2009
  2. Junio C HamanoJun 25, 2009

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.