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