Create GetAttributes to replace GetInfoAttributes
Since we write gitattributes to an info/attributes
file, we have GetInfoAttributes
which reads that file and streams the lines back to Rails, which then parses this. With Git 2.41's --attr-source
option, we no longer have to do that.
We can have an RPC GetAttributes
that simply calls git-check-attr -a
and streams the attributes back in a structured way so that Rails doesn't have to parse the raw file entries.
Edited by John Cai