added branch select feature ...
|
1 |
<% |
2 |
my $api = gitprep_api; |
|
3 |
|
|
4 |
# Git |
|
revert encoding support
|
5 |
my $git = app->git; |
added branch select feature ...
|
6 |
|
7 |
# Branches |
|
cleanup rep_info
|
8 |
my $branches = $git->branches($self->app->rep_info($user, $project)) || []; |
added branch select feature ...
|
9 |
my @branch_names = map { $_->{name} } @$branches; |
10 |
|
|
11 |
# Tags |
|
12 |
my $tags = $git->tags( |
|
cleanup tags
|
13 |
app->rep_info($user, $project), |
added branch select feature ...
|
14 |
app->config->{basic}{tags_limit} || 1000, |
15 |
app->config->{basic}{tags_limit} || 1000 |
|
16 |
) || []; |
|
17 |
my @tag_names = map { $_->{name} } @$tags; |
|
18 |
|
|
19 |
$self->render( |
|
20 |
json => { |
|
21 |
branch_names => \@branch_names, |
|
22 |
tag_names => \@tag_names |
|
23 |
} |
|
24 |
); |
|
25 |
return; |
|
26 |
%> |