Improve overlap of lines in network graph

This commit is contained in:
Sato Hiroyuki 2013-01-30 22:20:00 +09:00
parent 7ba4f2dcfa
commit 59b6de93ce
3 changed files with 91 additions and 26 deletions

View file

@ -5,12 +5,13 @@ module Gitlab
class Commit
include ActionView::Helpers::TagHelper
attr_accessor :time, :space, :refs
attr_accessor :time, :space, :refs, :parent_spaces
def initialize(commit)
@_commit = commit
@time = -1
@space = 0
@parent_spaces = []
end
def method_missing(m, *args, &block)
@ -28,6 +29,7 @@ module Gitlab
}
h[:time] = time
h[:space] = space
h[:parent_spaces] = parent_spaces
h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil?
h[:id] = sha
h[:date] = date