Class: Gitlab::Diff::LineCode

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/diff/line_code.rb

Class Method Summary collapse

Class Method Details

.generate(file_path, new_line_position, old_line_position) ⇒ Object


4
5
6
# File 'lib/gitlab/diff/line_code.rb', line 4

def self.generate(file_path, new_line_position, old_line_position)
  "#{Digest::SHA1.hexdigest(file_path)}_#{old_line_position}_#{new_line_position}"
end