perlancar has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way in the current Algorithm::Diff to limit the hunk size? If there isn't, would it be a good idea to add this ability to the module? One example where I'm wanting it is: I have ~20 lines of text in file1, and the same 20 lines of text in file2 but each with some characters modified. Normally, with the 'diff -u' command and Algorithm::Diff, I'll just have two hunks: remove 20 lines from file1, followed by adding 20 lines from file2. What I want is a unified diff view but one a line-by-line basis, plus word-/character-based color highlighting so I can see for each line which characters are modified.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Setting maximum hunk size in Algorithm::Diff
by tybalt89 (Monsignor) on Jan 13, 2018 at 12:14 UTC |
Back to
Seekers of Perl Wisdom