Re: [PATCH 2/4] diff-highlight: factor out prefix/suffix functions

2015-11-03 Thread Jeff King
On Mon, Nov 02, 2015 at 09:05:32PM -0500, Jonathan Lebon wrote: > In preparation for the next patch, we factor out the functions for > finding the common prefix and suffix between two lines. Looks like a pretty straightforward movement. Your perl adjustments to use array refs look good, and I thi

[PATCH 2/4] diff-highlight: factor out prefix/suffix functions

2015-11-02 Thread Jonathan Lebon
In preparation for the next patch, we factor out the functions for finding the common prefix and suffix between two lines. Signed-off-by: Jonathan Lebon --- contrib/diff-highlight/diff-highlight | 98 --- 1 file changed, 56 insertions(+), 42 deletions(-) diff --g