Algorithm::Merge is a Perl module package that provides three-way merge and diff.
SYNOPSIS
use Algorithm::Merge qw(merge diff3 traverse_sequences3);
@merged = merge(@ancestor, @a, @b, {
CONFLICT => sub { }
});
@merged = merge(@ancestor, @a, @b, {
CONFLICT => sub { }
}, $key_generation_function);
$merged = merge(@ancestor, @a, @b, {
CONFLICT => sub { }
});
$merged = merge(@ancestor, @a, @b, {
CONFLICT => sub { }
}, $key_generation_function);
@diff = diff3(@ancestor, @a, @b);
@diff = diff3(@ancestor, @a, @b, $key_generation_function);
$diff = diff3(@ancestor, @a, @b);
$diff = diff3(@ancestor, @a, @b, $key_generation_function);
@trav = traverse_sequences3(@ancestor, @a, @b, {
# callbacks
});
@trav = traverse_sequences3(@ancestor, @a, @b, {
# callbacks
}, $key_generation_function);
$trav = traverse_sequences3(@ancestor, @a, @b, {
# callbacks
});
$trav = traverse_sequences3(@ancestor, @a, @b, {
# callbacks
}, $key_generation_function);
USAGE
This module complements Algorithm::Diff by providing three-way merge and diff functions.
In this documentation, the first list to diff3, merge, and traverse_sequences3 is called the `original' list. The second list is the `left' list. The third list is the `right' list.
The optional key generation arguments are the same as in Algorithm::Diff. See Algorithm::Diff for more information.
Product's homepage
Requirements:
· Perl