blib/lib/Git/Raw/Signature.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Git/Raw/Repository.pm ↑ Summary blib/lib/Git/Raw/Stash.pm »
1 package Git::Raw::Signature;
2 1 $Git::Raw::Signature::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 1 ▶use Git::Raw;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 Git::Raw::Signature - Git signature class
11  
12 =head1 VERSION
13  
14 version 0.90
15  
16 =head1 DESCRIPTION
17  
18 A L<Git::Raw::Signature> represents the signature of an action.
19  
20 B<WARNING>: The API of this module is unstable and may change without warning
21 (any change will be appropriately documented in the changelog).
22  
23 =head1 METHODS
24  
25 =head2 new( $name, $email, $time, $offset )
26  
27 Create a new signature.
28  
29 =head2 now( $name, $email )
30  
31 Create a new signature with a timestamp of 'now'.
32  
33 =head2 default( $repo )
34  
35 Create a new signature with default user and a timestamp of 'now'.
36 This looks up the C<"user.name"> and C<"user.email"> from the configuration.
37  
38 =head2 name( )
39  
40 Retrieve the name associated with the signature.
41  
42 =head2 email( )
43  
44 Retrieve the email associated with the signature.
45  
46 =head2 time( )
47  
48 Retrieve the time of the signature.
49  
50 =head2 offset( )
51  
52 Retrieve the time offset (in minutes) of the signature.
53  
54 =head1 AUTHOR
55  
56 Alessandro Ghedini <alexbio@cpan.org>
57  
58 =head1 LICENSE AND COPYRIGHT
59  
60 Copyright 2012 Alessandro Ghedini.
61  
62 This program is free software; you can redistribute it and/or modify it
63 under the terms of either: the GNU General Public License as published
64 by the Free Software Foundation; or the Artistic License.
65  
66 See http://dev.perl.org/licenses/ for more information.
67  
68 =cut
69  
70 1 1; # End of Git::Raw::Signature
« blib/lib/Git/Raw/Repository.pm ↑ Summary blib/lib/Git/Raw/Stash.pm »