File Coverage

blib/lib/App/Git/Workflow/Command/ResetTo.pm
Criterion Covered Total %
statement 21 22 95.4
branch n/a
condition n/a
subroutine 7 8 87.5
pod 1 1 100.0
total 29 31 93.5


line stmt bran cond sub pod time code
1             package App::Git::Workflow::Command::ResetTo;
2              
3             # Created on: 2014-03-11 20:58:59
4             # Create by: Ivan Wills
5             # $Id$
6             # $Revision$, $HeadURL$, $Date$
7             # $Revision$, $Source$, $Date$
8              
9 1     1   1449 use strict;
  1         3  
  1         45  
10 1     1   8 use warnings;
  1         2  
  1         28  
11 1     1   6 use version;
  1         2  
  1         10  
12 1     1   94 use English qw/ -no_match_vars /;
  1         3  
  1         10  
13 1     1   410 use Term::ANSIColor qw/colored/;
  1         2  
  1         63  
14 1     1   8 use App::Git::Workflow;
  1         3  
  1         39  
15 1     1   6 use App::Git::Workflow::Command qw/get_options/;
  1         3  
  1         192  
16              
17             our $VERSION = version->new(1.1.16);
18             our $workflow = App::Git::Workflow->new;
19             our ($name) = $PROGRAM_NAME =~ m{^.*/(.*?)$}mxs;
20             our %option;
21              
22             sub run {
23 0     0 1   get_options(
24             \%option,
25             'colour|color|c',
26             'insensitive|i',
27             );
28              
29             }
30              
31             1;
32              
33             __DATA__
34              
35             =head1 NAME
36              
37             git-reset-to - Help reset-to many commits
38              
39             =head1 VERSION
40              
41             This documentation refers to git-reset-to version 1.1.16
42              
43             =head1 SYNOPSIS
44              
45             git-reset-to [option]
46              
47             OPTIONS:
48              
49             -v --verbose Show more detailed option
50             --version Prints the version information
51             --help Prints this help information
52             --man Prints the full documentation for git-reset-to
53              
54             =head1 DESCRIPTION
55              
56             Short hand for running
57              
58             C<git commit --reset-to>
59              
60             Over more than one commit in the history
61              
62             =head1 SUBROUTINES/METHODS
63              
64             =head2 C<run ()>
65              
66             Executes the git workflow command
67              
68             =head1 DIAGNOSTICS
69              
70             =head1 CONFIGURATION AND ENVIRONMENT
71              
72             =head1 DEPENDENCIES
73              
74             =head1 INCOMPATIBILITIES
75              
76             =head1 BUGS AND LIMITATIONS
77              
78             There are no known bugs in this module.
79              
80             Please report problems to Ivan Wills (ivan.wills@gmail.com).
81              
82             Patches are welcome.
83              
84             =head1 AUTHOR
85              
86             Ivan Wills - (ivan.wills@gmail.com)
87              
88             =head1 LICENSE AND COPYRIGHT
89              
90             Copyright (c) 2014 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
91             All rights reserved.
92              
93             This module is free software; you can redistribute it and/or modify it under
94             the same terms as Perl itself. See L<perlartistic>. This program is
95             distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
96             without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
97             PARTICULAR PURPOSE.
98              
99             =cut