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