Git::Raw::Config(3pm)
π Git::Raw::Config β the vibe π
okay so bestie, welcome to Git::Raw::Config, a page straight out of the User Contributed Perl Documentation collection. it's the Git config class, and honestly? she's giving main character energy in the Git::Raw cinematic universe. π
β¨ VERSION β¨
version 0.90 β yeah she's been around, she's seen things. π
πΈ DESCRIPTION πΈ
A Git::Raw::Config represents a Git configuration file. that's it, that's the whole job, and she does it flawlessly. no notes. π
β οΈ WARNING: the API of this module is unstable and may change without warning. not like, a little change either β we're talking any change. if it does change it'll be appropriately documented in the changelog, so at least there's that. π«Ά but pls don't build your entire personality on this API staying the same, i'm begging. π
π¦ METHODS π¦
π new( )
Creates a new config object. fresh start, clean slate, new era. β¨
π default( )
Retrieves the global, XDG and system configuration and opens them all into a single prioritized config object. it's the one you want when you're accessing default config data outside a repository. she's a combo meal, she's a curated playlist, she ate. π₯
π add_file( $path, $level )
Adds $path to the config object with priority level $level. you're literally hand-picking who gets to sit at the cool table, and how close to the front. π
β bool( $name [, $value ] )
Retrieves the value of the $name configuration field of type boolean. if $value is passed, the value of the configration will be updated and returned. and if the $name configuration is not found? undef comes back to you. it's giving "left on read." π
π int( $name [, $value ] )
Retrieves the value of the $name configuration field of type integer. if $value is passed, the value of the configration will be updated and returned. if the $name configuration is not found, you get undef. same energy, different data type, still iconic. π
π§ str( $name [, $value ] )
Retrieves the value of the $name configuration field of type string. if $value is passed, the value of the configration will be updated and returned. if the $name configuration is not found, undef, as always. her consistent queen behavior. π
π str_add( $name [, $value ] )
Adds the value of the $name configuration field of type string. if $value is passed, the value of the configration will be updated and returned. and yep, if the $name configuration is not found, undef is what you get. π
π foreach( $callback )
Runs $callback for every config entry. the callback receives the name of the config entry, its value and its priority level. and listen β a non-zero return value stops the loop. so if your callback ever goes "i'm done here," the whole thing respects it and bails. periodt. β
π¦ delete( $name )
Deletes the variable $name from the config object. gone. not coming back. blocked, actually. π
π« AUTHOR π«
- Alessandro Ghedini
<alexbio@cpan.org> - Jacques Germishuys
<jacquesg@cpan.org>
two legends, one module. we love to see it. π«Ά
π 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 Git::Raw::Config(3pm) from perl v5.42.3, dated 2026-08-19 β thank u for coming to my ted talk, go forth and config responsibly. no cap. ππ¦π
π¦ 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