Skip to content

Get diffs / patches on merge requests and fix them on specific commit

Proposal

When on a merge request (MR) I can generate a diff or patch by appending the URL of that MR with .diff or .patch. I would be great if there was a way to generate a patch that is fixed to a specific commit. What I would like to achieve with this is making sure the patch stays the same without having to worry someone might add additional commits to that MR in the future. Potentially introducing (security) risks if that patch would be blindly applied in the future.

What I could think of, is that it would be possible to add a ?commit_id=abc123 to the patch. eg. ../-/merge_requests/1234.patch?commit_id=abc123 which would generate a patch up until that point.