Skip to content

Copy diff feature for diff files

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

It would be useful to have a 'copy diff' feature on a diff file, similar to what we have with the 'Plain diff' feature but applied to a single file only. The diff could be reconstructed from the data that already exists on the diff file. The only piece of data missing right now is the first hunk header, which could be easily added.

This could simplify splitting larger MRs into smaller ones without diving deep into Git commands. It also allows you to selectively apply diff patch based on diff files, instead of applying the whole patch at once and then restoring the files you don't need to change.

Edited by 🤖 GitLab Bot 🤖