blib/lib/Git/Raw/PathSpec.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Git/Raw/Patch.pm ↑ Summary blib/lib/Git/Raw/PathSpec/MatchList.pm »
1 package Git::Raw::PathSpec;
2 1 $Git::Raw::PathSpec::VERSION = '0.90';
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 Git::Raw::PathSpec - Git pathspec class
9  
10 =head1 VERSION
11  
12 version 0.90
13  
14 =head1 DESCRIPTION
15  
16 A L<Git::Raw::PathSpec> represents a Git pathspec.
17  
18 B<WARNING>: The API of this module is unstable and may change without warning
19 (any change will be appropriately documented in the changelog).
20  
21 =head1 METHODS
22  
23 =head2 new( @paths )
24  
25 Compile a new pathspec. C<@match> is the list of paths to match.
26  
27 =head2 match( $object [, \%options] )
28  
29 Math the pathspec against C<$object>. C<$object> could be a
30 L<Git::Raw::Repository> (matches against the working directory),
31 L<Git::Raw::Index> (matches against the index), L<Git::Raw::Tree> (matches
32 against the tree) or a L<Git::Raw::Diff> (matches against the diff). Returns
33 a L<Git::Raw::PathSpec::MatchList> object. Valid fields for C<%options> are:
34  
35 =over 4
36  
37 =item * "flags"
38  
39 Flags for the matches. Valid values include:
40  
41 =over 8
42  
43 =item * "ignore_case"
44  
45 Forces match to ignore case, otherwise the match will use native case
46 sensitivity of the platform's filesystem.
47  
48 =item * "use_case"
49  
50 Forces case sensitive match, otherwise the match will use native case
51 sensitivity of the platform's filesystem.
52  
53 =item * "no_glob"
54  
55 Disables glob patterns and just uses simple string comparison for matching.
56  
57 =item * "no_match_error"
58  
59 C<math> should return an error code if no matches were found.
60  
61 =item * "find_failures"
62  
63 Record patterns that did not match.
64  
65 =item * "failures_only"
66  
67 Only determine if there were patterns that did not match.
68  
69 =back
70  
71 =back
72  
73 =head1 AUTHOR
74  
75 Alessandro Ghedini <alexbio@cpan.org>
76  
77 Jacques Germishuys <jacquesg@cpan.org>
78  
79 =head1 LICENSE AND COPYRIGHT
80  
81 Copyright 2012 Alessandro Ghedini.
82  
83 This program is free software; you can redistribute it and/or modify it
84 under the terms of either: the GNU General Public License as published
85 by the Free Software Foundation; or the Artistic License.
86  
87 See http://dev.perl.org/licenses/ for more information.
88  
89 =cut
90  
91 1 1; # End of Git::Raw::PathSpec
« blib/lib/Git/Raw/Patch.pm ↑ Summary blib/lib/Git/Raw/PathSpec/MatchList.pm »