GetRawPatch: should be raw email content
We decided that raw patches did not have to be identical between Git and Mercurial – at some point it starts making no sense.
But the content returned by
GetRawPatch is exposed in the Rails application as "Email Patches" (in the "Options" menu of commit pages). Indeed, what Gitaly returns looks like suitable content for a
DATA SMTP command.
A probable use case would be some team using GitLab downstream of a Git project that takes email patches only, and rely on this feature to submit upstream. There are perhaps Linux kernel contributors that work this way.
GetRawPatch should therefore stick to that intent and rely on the
patchbomb extension to generate the response instead of AFAICT providing essentially the same content as