line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::Git::Workflow::Command::Amend; |
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
|
2
|
|
|
2
|
|
92804
|
use strict; |
|
2
|
|
|
|
|
14
|
|
|
2
|
|
|
|
|
59
|
|
10
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
64
|
|
11
|
2
|
|
|
2
|
|
451
|
use version; |
|
2
|
|
|
|
|
1723
|
|
|
2
|
|
|
|
|
12
|
|
12
|
2
|
|
|
2
|
|
608
|
use English qw/ -no_match_vars /; |
|
2
|
|
|
|
|
3330
|
|
|
2
|
|
|
|
|
13
|
|
13
|
2
|
|
|
2
|
|
2010
|
use Term::ANSIColor qw/colored/; |
|
2
|
|
|
|
|
17027
|
|
|
2
|
|
|
|
|
2653
|
|
14
|
2
|
|
|
2
|
|
510
|
use App::Git::Workflow; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
117
|
|
15
|
2
|
|
|
2
|
|
556
|
use App::Git::Workflow::Command qw/get_options/; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
366
|
|
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
|
1
|
|
|
1
|
1
|
7
|
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-amend - Help amend many commits |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This documentation refers to git-amend version 1.1.16 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SYNOPSIS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
git-amend [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-amend |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 DESCRIPTION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Short hand for running |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
C<git commit --amend> |
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 |