Welcome to mirror list, hosted at ThFree Co, Russian Federation.

graph_helper.rb « gitlab « helpers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 047f5c1909588d945cf3a50106f4d08f86d5f77e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Gitlab
  module GraphHelper
    def get_refs(repo, commit)
      refs = ""
      refs << commit.ref_names(repo).join(' ')

      # append note count
      refs << "[#{@graph.notes[commit.id]}]" if @graph.notes[commit.id] > 0

      refs
    end

    def parents_zip_spaces(parents, parent_spaces)
      ids = parents.map { |p| p.id }
      ids.zip(parent_spaces)
    end
  end
end