Git::R...RefSpec(3pm)
π Git::Raw::RefSpec β the perl glue for Git refspecs, bestie π
okay so real quick: this is a page from the User Contributed Perl Documentation for the module Git::Raw::RefSpec (yeah the header truncates it to Git::R...RefSpec because man page headers have zero chill about column width, we move).
β¨ NAME β¨
Git::Raw::RefSpec β it's the Git refspec class, periodt. π
πΈ VERSION π¨
version 0.90
π¦ DESCRIPTION π¦
So like... a Git::Raw::RefSpec represents a Git refspec. That's the whole vibe. It's giving "one object, one job." π
β οΈ WARNING: the API of this module is unstable and may change without warning. Not "may" like maybe, like may. Any change will be appropriately documented in the changelog, so at least she's honest about it. π«Ά
π METHODS π
π parse( $input, $is_fetch )
Parse the refspec string $input. That's it, that's the method. Feed her the string, she does the thing. β¨
π dst( )
Retrieve the destination specifier of the refspec. Where is she going? This tells you. π
π dst_matches( $name )
Check if the refspec's destination descriptor matches the reference named by $name. Returns whether or not they're a match β vibe check for refs. π§
πΈ src( )
Retrieve the source specifier of the refspec. Where is she coming from. Main character origin story. π
β src_matches( $name )
Check if the refspec's source descriptor matches the reference named by $name. Same energy as dst_matches, but for the source side of the house. π
π₯ string( )
Get the refspec's string. The whole thing, as a string. Slay. π
π direction( )
Get the refspec's direction. It is either "fetch" or "push". Those are the only two options bestie, no third thing, don't @ me. π
π¦ transform( $name )
Transform $name to its target, following the refspec's rules. A little glow-up, refspec-style. β¨
π rtransform( $name )
Transform the target reference $name to its source reference name, following the refspec's rules. Yeah it's transform but backwards β the r stands for reverse, iykyk. π
π is_force( )
Get the refspec's force update setting. Is she forcing? This is how you find out. π₯
π AUTHOR π
- Alessandro Ghedini
<alexbio@cpan.org> - Jacques Germishuys
<jacquesg@cpan.org>
two legends, one module. π
πΈ 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.
okay that's the whole page babe, and for the cute sign-off: this was served up by perl v5.42.3, dated 2026-08-19, and yes she's a Git::Raw::RefSpec(3pm) girly through and through. go read the source, mwah ππ¦β¨
π¦ 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