Welcome to mirror list, hosted at ThFree Co, Russian Federation.

line_code.rb « diff « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f3578ab3d351fca995ff49c4669bd60248aae968 (plain)
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