Skip to contentSkip to conversation

Determine Blob ID from Commit ID and File Path

DISCUSSION Sigurdson, Dirk 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw
Quoted 3 lines · Dirk

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