-
-
Notifications
You must be signed in to change notification settings - Fork 87
Document that .gitignore is respected by default during workspace discovery #983
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #983 +/- ##
==========================================
+ Coverage 90.03% 90.09% +0.06%
==========================================
Files 66 66
Lines 12344 12227 -117
==========================================
- Hits 11114 11016 -98
+ Misses 1230 1211 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Copilot
AI
changed the title
[WIP] Add support for excluding directories in .gitignored files
Document that .gitignore is respected by default during workspace discovery
Oct 28, 2025
j178
approved these changes
Oct 28, 2025
📦 Cargo Bloat ComparisonBinary size change: +0.00% (16.1 MiB → 16.1 MiB) Expand for cargo-bloat outputPR Branch ResultsBase Branch Results |
feliblo
pushed a commit
to feliblo/prek
that referenced
this pull request
Oct 29, 2025
…covery (j178#983) * Initial plan * Document that .gitignore is respected by default and add test Co-authored-by: j178 <10510431+j178@users.noreply.github.com> * Lint --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
feliblo
pushed a commit
to feliblo/prek
that referenced
this pull request
Oct 29, 2025
…covery (j178#983) * Initial plan * Document that .gitignore is respected by default and add test Co-authored-by: j178 <10510431+j178@users.noreply.github.com> * Lint --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: j178 <10510431+j178@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Users were unaware that
.gitignorefiles are already respected during workspace discovery, leading to unnecessary duplication in.prekignorefiles.Changes
docs/workspace.mdto clarify thatprekrespects.gitignore,.git/info/exclude, and global gitignore by default via theignorecrate.prekignoreis only needed for additional exclusions beyond.gitignoregitignore_respectedtest to verify that gitignored directories (e.g.,node_modules,target) are excluded from workspace discoveryContext
The
ignore::WalkBuilderused for workspace discovery already honors all standard git ignore patterns by default. No code changes were needed—only documentation to surface this behavior.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/home/REDACTED/work/prek/prek/target/debug/prek run -v(dns block)mirrors.aliyun.com/home/REDACTED/work/prek/prek/target/debug/prek run(dns block)/home/REDACTED/work/prek/prek/target/debug/prek run project2/(dns block)/home/REDACTED/work/prek/prek/target/debug/prek run --skip project2/(dns block)mirrors.cloud.tencent.com/home/REDACTED/work/prek/prek/target/debug/prek run(dns block)/home/REDACTED/work/prek/prek/target/debug/prek run project2/(dns block)/home/REDACTED/work/prek/prek/target/debug/prek install-hooks(dns block)notexistentatallnevergonnahappen.com/usr/lib/git-core/git-remote-https origin REDACTED(dns block)pypi.tuna.tsinghua.edu.cn/home/REDACTED/work/prek/prek/target/debug/prek run(dns block)/home/REDACTED/work/prek/prek/target/debug/prek run project2/(dns block)/home/REDACTED/work/prek/prek/target/debug/prek run --skip project2/(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
prekworkspaces in.gitignoreddirectories #979💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.