NAME
Git::Native::Config - A libgit2 configuration handle
VERSION
version 0.003
SYNOPSIS
my $cfg = $repo->config; # live, writable
$cfg->set_string('user.name', 'Ada');
say $repo->config_string('user.name'); # 'Ada' (fresh snapshot read)
my $snap = $repo->config_snapshot;
say $snap->get_string('user.email');
DESCRIPTION
A libgit2 configuration handle. Wraps git_config*; freed automatically when the object goes out of scope.
Reads go through get_string, which libgit2 only supports reliably on a snapshot config — get one via "config_snapshot" in Git::Native::Repository or the "config_string" in Git::Native::Repository convenience. Writes (set_string) require a live config from "config" in Git::Native::Repository.
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.