BigW Consortium Gitlab

line_code.rb 237 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
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