debian-mirror-gitlab/lib/gitlab/diff/line_code.rb

10 lines
237 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
module Gitlab
module Diff
class LineCode
def self.generate(file_path, new_line_position, old_line_position)
"#{Digest::SHA1.hexdigest(file_path)}_#{old_line_position}_#{new_line_position}"
end
end
end
end