in lib/gitlab_git/attributes.rb [55:92]
def parse_attributes(string)
values = {}
dash = '-'
equal = '='
binary = 'binary'
string.split(/\s+/).each do |chunk|
next if chunk == equal
key = chunk
if chunk.start_with?(dash)
key = chunk.byteslice(1, chunk.length - 1)
value = false
elsif chunk.include?(equal)
key, value = chunk.split(equal, 2)
else
value = true
end
values[key] = value
values['diff'] = false if key == binary && value
end
values
end