Codegen: also mark generated .gitattributes as linguist-generated

This commit is contained in:
Paolo Tranquilli
2023-05-05 09:59:09 +02:00
parent d0047ae99f
commit 436f2437ef
3 changed files with 3 additions and 1 deletions

View File

@@ -195,6 +195,7 @@ class RenderManager(Renderer):
self._registry_path.parent.mkdir(parents=True, exist_ok=True)
with open(self._registry_path, 'w') as out, open(self._registry_path.parent / ".gitattributes", "w") as attrs:
print(self._registry_path.name, "linguist-generated", file=attrs)
print(".gitattributes", "linguist-generated", file=attrs)
for f, hashes in sorted(self._hashes.items()):
print(f, hashes.pre, hashes.post, file=out)
print(f, "linguist-generated", file=attrs)