Repository navigation
Review several local files with repeated --path - #121
Open
devhimanshuhc wants to merge 1 commit into
Open
devhimanshuhc wants to merge 1 commit into
devhimanshuhc wants to merge 1 commit into
Conversation
`proofline review --path` took one file, so a person whose local change was refused as too large, too many files or not UTF-8 had to review the files they cared about one review at a time. --path now repeats: the selected files go into one patch, both sides of a rename stay a rename, and every path is checked before anything is sent. Those three refusals now suggest --path when no path was named.
This was referenced Nov 30, 2026
This branch has not been deployed
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
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.
Who it helps
People who run
proofline reviewon local changes that Proofline refuses as a whole. The CLI refuses a local patch over 5 MiB, over 3,000 files, or with any text that is not UTF-8. A regenerated lockfile, a vendored directory or one Latin-1 test fixture is enough. The only way around it was--path, which takes one file. Reviewing the five files you actually changed meant five reviews, five uploads and five charges, and cross-file findings were lost because each review saw one file.Change
--pathnow repeats:proofline review --path src/a.rs --path src/b.rssends one patch with exactly those files.... One refused path stops the whole review before anything is sent, so a typo never uploads a partial selection.; to review some of the files, name each one with --path FILEwhen no--pathwas given.check_pathsvalidates every path with onegit ls-filesagainst the scratch index and onegit ls-treeagainst the base, so the number of git processes does not grow with the number of paths.--commit,--rangeand--prare unchanged.--json, exit codes, the index-preserving scratch index and the secret preflight all behave as before. The README documents the repeatable flag.Decisions
--exclude.--allow-pathand--filesalready take lists, and naming what to review keeps the literal, no-glob rules--pathhas today.--path. Someone who already selected files and is still over the limit needs a smaller selection, not the same advice again.Verification
tests/local_patch.rs. All three fail on unmodifiedmainand pass with this change:repeated_local_paths_select_several_literal_files_and_a_rename: four changed files, three selected (one named twice, one is agit mv). The upload has exactly 3 sections, the rename staysrename from/rename to, the unselected file is absent, and the real index is byte-for-byte unchanged.one_invalid_local_path_refuses_every_path_before_http: a valid path plus a directory, a missing file or... The refusal names the bad path and makes no HTTP request.an_unreviewable_patch_names_path_and_a_selection_reviews_the_rest: a Latin-1 file makes the plain review refuse with the--path FILEhint and no request.--path kept.txtthen uploads only the other file.--pathtests pass unchanged.cargo fmt --checkandcargo clippy --locked --all-targets -- -D warningsare clean.cargo test --locked --no-fail-fastpasses everything exceptunattended_registration_preserves_settings_and_uses_the_installed_binary, which fails the same way on unmodifiedmainon macOS (unattended_registration_preserves_settings_and_uses_the_installed_binary fails on macOS (/var vs /private/var) #112).