I am trying to find out what the commit hash is for files within my repository. Different files got modified with different commits.
I see this information displayed on GitLab web interface:

But how do I get this information using the GitLab API? I tried doing:
GET /projects/:id/repository/files
https://gitlab_server/api/v3/projects/1234/repository/files?file_path=test/file2.tconf&ref=master
But the commit_id from the response matches HEAD's hash 0f05a8e4bf45942b1189fce923184129821845f1, instead of what's seen in the screenshot above.
{
"file_name": "file2.tconf",
"file_path": "test/file2.tconf",
"size" : 44,
"encoding" : "base64",
"content" : "...",
"ref" : "master",
"blob_id" : "50450759d2b0694b044ed3d7eaf93c2c98dacbba",
"commit_id": "0f05a8e4bf45942b1189fce923184129821845f1"
}
Any clues?