From b9edfe30e84e57f3a9c7f9d1cefaa741eba38598 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 11 Mar 2025 16:12:52 -0400 Subject: [PATCH] Add dotfiles and more binaries to .gitignore generated by helper.py. --- helper.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/helper.py b/helper.py index be68757d..a1d41ccb 100755 --- a/helper.py +++ b/helper.py @@ -138,12 +138,18 @@ void init(Plugin* p) { with open(os.path.join(plugin_dir, "src/plugin.cpp"), "w") as f: f.write(plugin_cpp) - git_ignore = """/build + git_ignore = """# Ignore all dotfiles except git dotfiles +.* +!.git* + +# Binaries and build targets +*.a +*.so +*.dylib +*.dll +/build +/dep /dist -/*.so -/*.dylib -/*.dll -.DS_Store """ with open(os.path.join(plugin_dir, ".gitignore"), "w") as f: f.write(git_ignore)