gitprep / templates / api / revs.html.ep /
Newer Older
26 lines | 0.554kb
added branch select feature ...
Yuki Kimoto authored on 2013-05-10
1
<%
2
  my $api = gitprep_api;
3
  
4
  # Git
revert encoding support
Yuki Kimoto authored on 2013-11-22
5
  my $git = app->git;
added branch select feature ...
Yuki Kimoto authored on 2013-05-10
6
  
7
  # Branches
cleanup rep_info
Yuki Kimoto authored on 2016-04-16
8
  my $branches = $git->branches($self->app->rep_info($user, $project)) || [];
added branch select feature ...
Yuki Kimoto authored on 2013-05-10
9
  my @branch_names = map { $_->{name} } @$branches;
10
  
11
  # Tags
12
  my $tags = $git->tags(
cleanup tags
Yuki Kimoto authored on 2016-04-16
13
    app->rep_info($user, $project),
added branch select feature ...
Yuki Kimoto authored on 2013-05-10
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
%>