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. 🫢


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