On 31.08.2022 19:06, Juri Linkov wrote:
But a loop is necessary because the diff can have more than one hunk,
isn't
it?
A loop is necessary indeed. The problem is that I tried it with Bzr,
but it has such a bug that `bzr diff` adds an extra line at the end,
so it's not (eobp) after the last diff hunk. After removing the
final newline in the*vc-diff* buffer the loop can be finished.
Hmm, so how do we apply the full diff in a backend-agnostic fashion?
Should we delegate to 'patch', then? And require it to be installed.