Gitlab Version: 13.10
I have a repository, that have 4 commits
- create file a.txt
- update a.txt
- rename a.txt → b.txt
- update b.txt
Then I push this repository to remote gitlab server.
what I want
get a file commits history that without the rename commits
by rest api
API DOC
like git log b.txt
what I did
use rest api
GET {{gitlab_url}}/api/v4/projects/{{gitlab_project_id}}/repository/commits?path=b.txt&ref_name=master
to request a file commit history
what I got
a file commits history that include the rename commits
like git log --follow a.txt
Question
Is there any way to get commits history of b.txt
by rest api, without init a.txt
and update a.txt
commits?
Thanks a lot