Skip to content

fix: gitignore and gitingestignore files are now correctly processed … #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/gitingest/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,14 @@ async def ingest_async(
token=token,
)

if not include_gitignored:
_apply_gitignores(query)

if query.url:
_override_branch_and_tag(query, branch=branch, tag=tag)

query.include_submodules = include_submodules

async with _clone_repo_if_remote(query, token=token):
if not include_gitignored:
_apply_gitignores(query)
summary, tree, content = ingest_query(query)
await _write_output(tree, content=content, target=output)
return summary, tree, content
Expand Down
1 change: 0 additions & 1 deletion src/gitingest/utils/ignore_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def load_ignore_patterns(root: Path, filename: str) -> set[str]:
for ignore_file in root.rglob(filename):
if ignore_file.is_file():
patterns.update(_parse_ignore_file(ignore_file, root))

return patterns


Expand Down
Loading