| 1 | package Git::Raw::Stash::Progress; | ||||||||||
| 2 | 87 | $Git::Raw::Stash::Progress::VERSION = '0.90'; | |||||||||
| 3 | 87 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 87 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 87 | ▶ | use Carp; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 8 | ▶ | sub AUTOLOAD { | ||||||||
|
Subroutine
AUTOLOAD: called CC=3 SCAR=11.1
| |||||||||||
| 8 | # This AUTOLOAD is used to 'autoload' constants from the constant() | ||||||||||
| 9 | # XS function. | ||||||||||
| 10 | |||||||||||
| 11 | 8 | my $constname; | |||||||||
| 12 | 8 | our $AUTOLOAD; | |||||||||
| 13 | 8 | ($constname = $AUTOLOAD) =~ s/.*:://; | |||||||||
| 14 | 8 | ▶ | croak "&Git::Raw::Stash::Progress::constant not defined" if $constname eq '_constant'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 8 | my ($error, $val) = _constant($constname); | |||||||||
| 16 | 0 | ▶ | if ($error) { croak $error; } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | { | ||||||||||
| 18 | 87 | ▶ | no strict 'refs'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 8 | ▶ | *$AUTOLOAD = sub { $val }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 20 | } | ||||||||||
| 21 | 8 | goto &$AUTOLOAD; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 87 | ▶ | use Git::Raw; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 25 | |||||||||||
| 26 | =head1 NAME | ||||||||||
| 27 | |||||||||||
| 28 | Git::Raw::Stash::Progress - Git stash progress | ||||||||||
| 29 | |||||||||||
| 30 | =head1 VERSION | ||||||||||
| 31 | |||||||||||
| 32 | version 0.90 | ||||||||||
| 33 | |||||||||||
| 34 | =head1 DESCRIPTION | ||||||||||
| 35 | |||||||||||
| 36 | L<Git::Raw::Stash::Progress> provides a namespace for stash progress constants. | ||||||||||
| 37 | |||||||||||
| 38 | B<WARNING>: 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 <jacquesg@cpan.org> | ||||||||||
| 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 | 87 | 1; # End of Git::Raw::Stash::Progress | |||||||||