BigW Consortium Gitlab

graph_helper.rb 344 Bytes
Newer Older
1
module GraphHelper
2
  def get_refs(repo, commit)
3
    refs = ""
4
    refs << commit.ref_names(repo).join(' ')
5 6

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

    refs
10
  end
11 12 13 14 15

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