Apache::CVS::Diff - class that implements a CVS diff


Apache-CVS documentation  | view source Contained in the Apache-CVS distribution.

Index


NAME

Top

Apache::CVS::Diff - class that implements a CVS diff

SYNOPSIS

Top

 use Apache::CVS::File();
 use Apache::CVS::Diff();

 $diff = Apache::CVS::Diff->new($source, $target, $style);
 @content = @{ $diff->content() };

DESCRIPTION

Top

The Apache::CVS::Diff class implements a CVS diff. What you would get with your plain 'ol cvs diff command.

$diff = Apache::CVS::Diff->new($source, $target, $styles)

Construct a new Apache::CVS::Diff object. The first two arguments should be instancesof Apache::CVS::Version. The third is the arguments to rcsdiff(1). The style defaults to 'ua'.

$revision = $diff->source()

Returns the source revision of this diff.

$revision = $diff->target()

Returns the target revision of this diff.

$diff->style()

Returns or set the style of the diff.

$diff->content()

Returns the contents of the diff as a references to an array of lines.

SEE ALSO

Top

Apache::CVS, Apache::CVS::File

AUTHOR

Top

John Barbee <barbee@veribox.net>

COPYRIGHT

Top


Apache-CVS documentation  | view source Contained in the Apache-CVS distribution.