Git::Raw::PathSpec(3pm)

Git::Raw::PathSpec3pm

Git pathspec class

Version

version 0.90

Overview

A Git::Raw::PathSpec represents a Git pathspec.

WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).

Methods

new( @paths )

Compile a new pathspec. @match is the list of paths to match.

match( $object [, \%options] )

Math the pathspec against $object. $object could be a Git::Raw::Repository (matches against the working directory), Git::Raw::Index (matches against the index), Git::Raw::Tree (matches against the tree) or a Git::Raw::Diff (matches against the diff). Returns a Git::Raw::PathSpec::MatchList object. Valid fields for %options are:

•

"flags"

Flags for the matches. Valid values include:

•

"ignore_case"

Forces match to ignore case, otherwise the match will use native case sensitivity of the platform's filesystem.

•

"use_case"

Forces case sensitive match, otherwise the match will use native case sensitivity of the platform's filesystem.

•

"no_glob"

Disables glob patterns and just uses simple string comparison for matching.

•

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

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

Alessandro Ghedini <[email protected]>

Jacques Germishuys <[email protected]>

From libgit-raw-perl 0.90+ds-3+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.