File Coverage

blib/lib/Git/Raw/Stash/Progress.pm
Criterion Covered Total %
statement 25 26 96.1
branch 2 4 50.0
condition n/a
subroutine 7 7 100.0
pod n/a
total 34 37 91.8


line stmt bran cond sub pod time code
1             package Git::Raw::Stash::Progress;
2             $Git::Raw::Stash::Progress::VERSION = '0.87';
3 35     43   291 use strict;
  35         65  
  35         1002  
4 35     43   179 use warnings;
  35         69  
  35         820  
5 35     43   189 use Carp;
  35         65  
  35         5640  
6              
7             sub AUTOLOAD {
8             # This AUTOLOAD is used to 'autoload' constants from the constant()
9             # XS function.
10              
11 8     8   122 my $constname;
12 8         10 our $AUTOLOAD;
13 8         52 ($constname = $AUTOLOAD) =~ s/.*:://;
14 8 50       26 croak "&Git::Raw::Stash::Progress::constant not defined" if $constname eq '_constant';
15 8         62 my ($error, $val) = _constant($constname);
16 8 50       19 if ($error) { croak $error; }
  0         0  
17             {
18 35     35   292 no strict 'refs';
  35         116  
  35         2972  
  8         14  
19 8     8   56 *$AUTOLOAD = sub { $val };
  8         33  
20             }
21 8         33 goto &$AUTOLOAD;
22             }
23              
24 35     35   263 use Git::Raw;
  35         84  
  35         1306  
25              
26             =head1 NAME
27              
28             Git::Raw::Stash::Progress - Git stash progress
29              
30             =head1 VERSION
31              
32             version 0.87
33              
34             =head1 DESCRIPTION
35              
36             L provides a namespace for stash progress constants.
37              
38             B: The API of this module is unstable and may change without warning
39             (any change will be appropriately documented in the changelog).
40              
41             =head1 CONSTANTS
42              
43             =head2 NONE
44              
45             None.
46              
47             =head2 LOADING_STASH
48              
49             Stashed data is being loaded from the object database.
50              
51             =head2 ANALYZE_INDEX
52              
53             The stored index is being analyzed.
54              
55             =head2 ANALYZE_MODIFIED
56              
57             The modified files are being analyzed.
58              
59             =head2 ANALYZE_UNTRACKED
60              
61             The untracked and ignored files are being analyzed.
62              
63             =head2 CHECKOUT_UNTRACKED
64              
65             The untracked files are being written to disk.
66              
67             =head2 CHECKOUT_MODIFIED
68              
69             The modified files are being written to disk.
70              
71             =head2 DONE
72              
73             The stash was successfully applied.
74              
75             =head1 AUTHOR
76              
77             Jacques Germishuys
78              
79             =head1 LICENSE AND COPYRIGHT
80              
81             Copyright 2016 Jacques Germishuys.
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; # End of Git::Raw::Stash::Progress