Git::Raw::Tree - Git tree class
Git::Raw::Tree represents a Git tree.
WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).
Retrieve the tree corresponding to C$id>.
This function is pretty much the same as
$repo->lookup($id) except that it only returns trees.
Retrieve the id of the tree, as string.
Retrieve a list of Git::Raw::Tree::Entry objects.
Retrieve a Git::Raw::Tree::Entry object by name.
Retrieve a Git::Raw::Tree::Entry object by path.
$theirs into this tree.
$theirs should be
Git::Raw::Repository->merge() for valid
Git::Raw::Index object containing the merge result.
Compute the Git::Raw::Diff between two trees.
Valid fields for the
%opts hash are:
the diff is computed against
The default is the repo's working directory.
Flags for generating the diff. Valid values include:
Reverse the sides of the diff.
Include ignored files in the diff.
"include_ignored" is specified,
an entire ignored directory will be marked with only a single entry in the diff.
This flag adds all files under the directory as ignored entries,
Include untracked files in the diff.
"include_untracked" is specified,
an entire untracked directory will be marked with only a single entry in the diff (core git behaviour).
This flag adds all files under untracked directories as untracked entries,
Ignore file mode changes.
Treat all submodules as unmodified.
Ignore all whitespace.
Ignore changes in amount of whitespace.
Ignore whitespace at end of line.
"patience diff" algorithm.
Take extra time to find minimal diff.
"directory" to prefix to old file names in hunk headers.
(Default is L"a".)
"directory" to prefix to new file names in hunk headers.
(Default is L"b".)
The number of unchanged lines that define the boundary of a hunk (and to display before and after)
The maximum number of unchanged lines between hunk boundaries before the hunks will be merged into a one.
A list of paths to constrain diff.
Alessandro Ghedini <email@example.com>
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.