I want to compare two commits in Gitlab and get the response in .diff format.
I tried the APIs listed in Gitlab doc https://docs.gitlab.com/ee/api/repositories.html#compare-branches-tags-or-commits. But it only returns the diff in JSON format.
How can I get the data in the git diff format?