Repository navigation
Conversation
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.
Summary
proofline review --base REVISIONreviews the working tree and local commits against the merge-base ofHEADand the named revision, instead of the upstream or<remote>/HEAD.git push -u, the base becameHEAD, so the pushed commits were left out unless you rangit branch --unset-upstream. On a stacked branch with no upstream, the default branch was the base, so the parent branch's commits were reviewed again. Naming the base fixes both.Decisions
merge-base(HEAD, REVISION). This matches the default behavior and how GitHub diffs a pull request, so a parent branch that has moved on does not show up as reverted.resolvehelper. An empty value, a value starting with-, or a value that names no commit is refused with the same error as--commitand--range.git for-each-ref --contains <merge-base> refs/remotes/must find a ref before anything is sent, because GitHub must havebase_commit_sha. A ref on any remote counts, so fork setups work; the server still verifies the base.git merge-basefailure.--baseconflicts with--pr,--commit,--rangeand--files. It works with--staged,--include-untracked,--path,--verify,--allow-pathand--fail-on.Testing
cargo fmt --check: passcargo clippy --locked --all-targets -- -D warnings: passcargo test --locked --test local_patch: 18 passed, including 4 new tests. They cover a pushed branch vs the default base; a stacked branch; unpushed and unrelated bases refused with no requests; and unknown revisions,--prefixed revisions and flag conflicts refused with no requests. The new tests failed before the change.cargo test --locked --no-fail-fast: 158 passed, 1 failed. The failure isagent_install::unattended_registration_preserves_settings_and_uses_the_installed_binary(macOS/varvs/private/var), which fails the same way onmain.-u, the default sent the branch head as the base with 1 file.--base mainsent themaincommit and included the pushed commit's file.--base parentwith an unpushed parent exited 1 with no requests. Aftergit push, it sent the parent commit.Scope
--range,--commitand pull-request review are unchanged; hooks keep the automatic base.--base.openapi.public.json, generated code or workflows.