John Barbee > Apache-CVS > Apache::CVS::Diff

Download:
Apache-CVS-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View Bugs
Report a bug
Source  

NAME ^

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

SYNOPSIS ^

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

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

DESCRIPTION ^

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 ^

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

AUTHOR ^

John Barbee <barbee@veribox.net>

COPYRIGHT ^

Copyright 2001-2002 John Barbee

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.