# Determine Blob ID from Commit ID and File Path

2 messages from 2009-06-25 to 2009-06-25. Participants: Sigurdson, Dirk, Junio C Hamano.
Thread: https://gitlist.dev/t/19933

## Sigurdson, Dirk, 2009-06-25 19:02

Subject: Determine Blob ID from Commit ID and File Path
Message-ID: <C66917DD.29BF%dirk.sigurdson@t-mobile.com>
URL: https://gitlist.dev/e/C66917DD.29BF%25dirk.sigurdson%40t-mobile.com

```
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?

```

## Junio C Hamano, 2009-06-25 19:07

Subject: Re: Determine Blob ID from Commit ID and File Path
Message-ID: <7vhby49loe.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vhby49loe.fsf%40alter.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"?

```
