NAME

Git::LowLevel::Tree - class representing a tree object in a GIT Repository

VERSION

version 0.3

ATTRIBUTES

repository

the repository the tree lives in

reference

the reference the tree lives in

path

the path to the tree object

hash

the hash identifying the tree object

tree

the tree entries

parent

the parent of the object within the tree

changed

identifies if the tree has been changed add,del or initial create of the tree

METHODS

timestamp_added

returns the timestamp of the commit where this object was added or undef if object has not been commited yet.

timestamp_last

returns the timestamp of the last commit of this object or undef if object has not been commited yet.

committer

returns the committer of the the object

mypath

get

returns an array of all the tree objects

empty

tests if the tree is empty

newBlob

create a new blob entry

newTree

create a new tree entry

add

add a new tree element

del

delete an element from the tree

save

save the full tree to the git object safe

treeEntry

return a string representing a tree entry

find

find a path within the tree

AUTHOR

Dominik Meyer <dmeyer@federationhq.de>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2018 by Dominik Meyer.

This is free software, licensed under:

  The GNU General Public License, Version 2, June 1991