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?
threads / discuss / 19933
Determine Blob ID from Commit ID and File Path
Subject: Determine Blob ID from Commit ID and File Path
Re: Determine Blob ID from Commit ID and File Path
"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"?