2018-10-04 09:16:51 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module BlobLanguageFromGitAttributes
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
def language_from_gitattributes
|
2020-02-25 09:09:10 +00:00
|
|
|
return unless repository&.exists?
|
2018-10-04 09:16:51 +00:00
|
|
|
|
|
|
|
repository.gitattribute(path, 'gitlab-language')
|
|
|
|
end
|
|
|
|
end
|