Ignore .osc directory

This commit is contained in:
Adam Majer
2024-06-10 17:31:14 +02:00
committed by Dirk Müller
parent 6bd5d72100
commit 40ad64ddff
2 changed files with 7 additions and 0 deletions

View File

@@ -183,6 +183,12 @@ class Git:
def add(self, filename):
self.git_run(["add", filename])
def add_default_gitignore(self):
if not (self.path / ".gitignore").exists():
with (self.path / ".gitignore").open("w") as f:
f.write(".osc\n")
self.add(".gitignore")
def add_default_lfs_gitattributes(self, force=False):
if not (self.path / ".gitattributes").exists() or force:
with (self.path / ".gitattributes").open("w") as f: