WIP: Exclude binary files from JJ diffs #51
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lab/turboCommit!51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "copilot/exclude-binary-files-diff"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Binary files in JJ diffs were causing context to become too large for the AI model. This PR filters them out, outputting only a minimal notification line instead of the full binary content.
Changes
is_binary_content()using git's heuristic (null byte check in first 8KB)get_jj_diff()andget_jj_diff_for_files()to skip binary content for added/deleted/modified filesOutput for binary files
Note on file selection
File selection for JJ already exists via
decide_diff_jj()inutil.rs- works identically to Git with--select-filesflag or automatic prompt when token limit exceeded.Original prompt
💡 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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.