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 πŸ‘‘


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