Compare two commits using gitlab api and get response in `.diff` format

Viewed 478
1 Answers

That was initially requested in issue 23285 five years ago (Oct. 2016):

GitHub seems have undocumented ways to download the unified diff file before create a pull request, that is: by add ".diff" or ".patch" suffix when comparing two branches.

But GitLab didn't have that feature yet.

That particular feature is requested in issue 217206.

Issue 20688 suggests:

The only possible workaround, I do right now is to get the data from compare API, and then use grep to get diff, and append all of them.

Related