diff --git a/src/gitingest/ignore_patterns.py b/src/gitingest/ignore_patterns.py index 803c6ed..8c738b8 100644 --- a/src/gitingest/ignore_patterns.py +++ b/src/gitingest/ignore_patterns.py @@ -23,6 +23,66 @@ '.npm', '.yarn', '.pnpm-store', + # Java + '*.class', + '*.jar', + '*.war', + '*.ear', + '*.nar', + 'target/', + '.gradle/', + 'build/', + '.settings/', + '.project', + '.classpath', + 'gradle-app.setting', + '*.gradle', + # C/C++ + '*.o', + '*.obj', + '*.so', + '*.dll', + '*.dylib', + '*.exe', + '*.lib', + '*.out', + '*.a', + '*.pdb', + # Swift/Xcode + '.build/', + '*.xcodeproj/', + '*.xcworkspace/', + '*.pbxuser', + '*.mode1v3', + '*.mode2v3', + '*.perspectivev3', + '*.xcuserstate', + 'xcuserdata/', + '.swiftpm/', + # Ruby + '*.gem', + '.bundle/', + 'vendor/bundle', + 'Gemfile.lock', + '.ruby-version', + '.ruby-gemset', + '.rvmrc', + # Rust + 'target/', + 'Cargo.lock', + '**/*.rs.bk', + # Go + 'bin/', + 'pkg/', + # .NET/C# + 'bin/', + 'obj/', + '*.suo', + '*.user', + '*.userosscache', + '*.sln.docstates', + 'packages/', + '*.nupkg', # Version control '.git', '.svn', diff --git a/src/gitingest/parse_query.py b/src/gitingest/parse_query.py index fe7b01a..5053dfa 100644 --- a/src/gitingest/parse_query.py +++ b/src/gitingest/parse_query.py @@ -6,6 +6,7 @@ from gitingest.ignore_patterns import DEFAULT_IGNORE_PATTERNS + TMP_BASE_PATH = "../tmp" HEX_DIGITS = set(string.hexdigits)