Hi Bram!

On Do, 14 Jun 2012, Bram Moolenaar wrote:

> My definition of "valid" is something that diff would produce.  Can you
> show me two input files for which diff produces an ed style diff with
> adjecent blocks?

Seems, the more widely used diffs, always merge adjacent hunks. The only 
reference I found to that was the GNU manual statingą:
    "In this case, diff normally shifts the hunk's boundaries when this 
    merges adjacent hunks"

But according to the robustness principle ("be conservative in what you 
do, be liberal in what you accept") and since it's still perfectly valid 
input and patch(1) happily accepts it, shouldn't Vim also be able to 
handle such a diff? 

ą) 
http://www.gnu.org/software/diffutils/manual/html_node/diff-Performance.html

regards,
Christian
-- 
Ohne Kirche - keine Hölle.
                -- Max Frisch

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui