NAME

Git::Native::TreeBuilder - Build a libgit2 tree object entry by entry

VERSION

version 0.003

SYNOPSIS

my $tb = $repo->tree_builder;
$tb->insert(name => 'hello.txt', oid => $blob_oid, mode => 0100644);
my $tree_oid = $tb->write;

DESCRIPTION

In-memory tree assembler. insert/remove mutate the builder; write persists it as a tree object and returns its OID.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-git-native/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <getty@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.