Git::Raw::Diff - Git diff class
Git::Raw::Diff represents the diff between two entities.
WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).
Merge the given diff with the
Generate text output from the diff object.
$callback will be called for each line of the diff with two arguments: the first one represents the type of the patch line (
"ctx" for context lines,
"add" for additions,
"del" for deletions,
"file" for file headers,
"hunk" for hunk headers or
"bin" for binary data) and the second argument contains the content of the patch line.
$format can be one of the following:
Full git diff.
Only the file headers of the diff.
git diff --raw.
git diff --name-only.
git diff --name-status.
Alessandro Ghedini <firstname.lastname@example.org>
Copyright 2012 Alessandro Ghedini.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.