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