Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

GitLab – How can I get commits from certain file

I want to get all commits from certain file. In API docs I only found how to get all commits from repository. But is it possible to get it from single file ?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What you are looking for is the blame range.
with this request GET /projects/:id/repository/files/:file_path/blame
The updated documentation can be found here https://docs.gitlab.com/ee/api/repository_files.html#get-file-blame-from-repository

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading