Skip to content

Serve 'raw' diffs and patches via gitlab-workhorse

We currently have code in gitlab_git that simulates the output of git diff and git format-patch (only for non-merge commits) via Rugged, to be sent to HTTP clients as plain text. It would be more robust to use gitlab-workhorse and the actual git diff and git format-patch commands for this.

Example requests:

.diff link

.patch link

The benefit of using gitlab-workhorse for this is that we avoid the Rails app choking on large diffs.