Security Advisories (2)
CVE-2014-9390 (2020-02-12)

Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and OS X; Mercurial before 3.2.3 on Windows and OS X; Apple Xcode before 6.2 beta 3; mine all versions before 08-12-2014; libgit2 all versions up to 0.21.2; Egit all versions before 08-12-2014; and JGit all versions before 08-12-2014 allow remote Git servers to execute arbitrary commands via a tree containing a crafted .git/config file with (1) an ignorable Unicode codepoint, (2) a git~1/config representation, or (3) mixed case that is improperly handled on a case-insensitive filesystem.

CVE-2018-25032 (2022-03-25)

zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.

NAME

Git::Raw::PathSpec - Git pathspec class

VERSION

version 0.86

DESCRIPTION

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.

AUTHOR

Alessandro Ghedini <alexbio@cpan.org>

Jacques Germishuys <jacquesg@striata.com>

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.