Git::R...Builder(3pm)
π Git::Raw::Tree::Builder β bestie, it's literally the tree builder class β¨
okay so this is the User Contributed Perl Documentation page for Git::Raw::Tree::Builder, and no cap, it's a whole vibe. it lives in Git::Raw land and it's here to help you build Git tree objects. let's get into it π
πΈ VERSION πΈ
version 0.90 β that's the one, bestie. π
π¦ DESCRIPTION π¦
A Git::Raw::Tree::Builder lets you build Git tree objects. that's the whole main character energy right there β¨
β οΈ WARNING, babes, listen up: the API of this module is unstable and may change without warning. (any change will be appropriately documented in the changelog, so likeβ¦ at least they tell you after the fact π)
π METHODS π
π§ new( $repo, [$tree] )
Creates a new tree builder that will build trees in $repo. and if you pass $tree? then the contents of the tree builder get initialized from the contents of $tree. cute lil copycat moment π«Ά
π clear( )
Clears the tree builder of all entries. poof. gone. empty. it's giving fresh start β¨
π entry_count( )
Returns the number of entries contained in this tree builder. just a lil headcount, bestie π’
π get( $filename )
Return a Git::Raw::TreeEntry corresponding to $filename. and if no such entry exists? it returns "undef". tragic but honest π
β insert( $filename, $object, $mode )
Adds (or updates) an entry in this tree builder. $object can be either a Git::Raw::Tree or Git::Raw::Blob object. Returns a Git::Raw::Tree::Entry object on success. slay, it even hands you the receipt π§Ύ
π remove( $filename )
Removes the entry associated with the filename $filename from this tree builder. yeet π
π₯ write( )
Writes the tree object we've been building into the repository. Returns a Git::Raw::Tree object on success. this is it, the finale, the moment your lil tree becomes real π³β¨
π«Ά AUTHOR π«Ά
Rob Hoelz <rob@hoelz.ro> β iconic, we stan π
π LICENSE AND COPYRIGHT π
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.
aaaand that's the whole page, bestie π this was perl v5.42.3 documentation, dated 2026-08-19, page Git::R...Builder(3pm). go build some trees, you got this. periodt. πΈ
π¦ where this page comes from
- ubuntu stonking: libgit-raw-perl 0.90+ds-3build3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms