Git::R...thSpec(3pm)
π NAME π
okay bestie, so Git::Raw::PathSpec β it's the Git pathspec class from the Git::Raw family. that's the whole name. short, sweet, iconic. we're in the Git::Raw::PathSpec manual page, and this is your girl explaining it, no cap. π
β¨ VERSION β¨
we're on version 0.90 β periodt. π
πΈ DESCRIPTION πΈ
so a Git::Raw::PathSpec represents a Git pathspec. that's it, that's the vibe. it's the object that holds your pathspec so you can throw it at repos and indexes and trees and diffs and see what hits. π¦
β οΈ WARNING, bestie, listen up: the API of this module is unstable and may change without warning. like, any change will be appropriately documented in the changelog, so it's not chaos chaos, but still β do not build your whole personality around it. π
π METHODS π
π new( @paths )
compile a brand new pathspec, fresh out the box. β¨
@pathsβ the list of paths to match.
lowkey the docs also call this list@matchin the description, even though the signature says@paths. both are floating around in there, iykyk. π
π§ match( $object [, \%options] )
match the pathspec against $object. π₯ and $object can be any of these cuties, dependent on what you're matching against:
Git::Raw::Repositoryβ matches against the working directory π«ΆGit::Raw::Indexβ matches against the index πGit::Raw::Treeβ matches against the tree πΈGit::Raw::Diffβ matches against the diff π«
it returns a Git::Raw::PathSpec::MatchList object, and that's a whole other bestie to go meet.
the valid fields for %options are:
"flags"β the flags for the matches, bestie. the valid values include:"ignore_case"β forces the match to ignore case. otherwise the match will use the native case sensitivity of the platform's filesystem. π"use_case"β forces a case sensitive match. otherwise the match will use the native case sensitivity of the platform's filesystem. π₯"no_glob"β disables glob patterns and just uses simple string comparison for matching. no wildcards, just vibes. β¨"no_match_error"β"math"should return an error code if no matches were found. π"find_failures"β record patterns that did not match. π"failures_only"β only determine if there were patterns that did not match. that's the whole job. π―
π AUTHOR π
the icons who made this:
- Alessandro Ghedini
<alexbio@cpan.org> - Jacques Germishuys
<jacquesg@cpan.org>
give them their flowers. π
π 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. π
aaaaand that's a wrap, bestie!! πβ¨ this page was brought to you by Git::R...thSpec from the User Contributed Perl Documentation, running on perl v5.42.3, dated 2026-08-19. slay, go match some paths, and remember: unstable API means stay flexible. π«Άπ periodt.
π¦ 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