Repository navigation
Add --filter-unreviewed - #366
Merged
Merged
Conversation
let scripted launches enable the unreviewed filter without a manual F keypress. The preference is also available through REVDIFF_FILTER_UNREVIEWED and the filter-unreviewed config key. clear the filter when a load leaves one underlying file, since F cannot disable it in single-file mode. This also fixes the filter getting stuck after a reload reduces the review to one file. Reloads preserve a manual choice to turn the filter off. Fixed #365
a dispatched review can outlive its launcher and open stderr after the launcher has removed the capture, recreating a file nobody will delete. Give the child its own hard link to the capture and remove that alias before publishing the exit code. If the launcher removes the capture before the child acquires its link, the review continues with stderr directed to /dev/null. the herdr command string is built from the invocation that already carries the EDITOR/VISUAL prefix, so a dispatched review still starts with the caller's editor environment. a regression test forces the launcher to exit between the started marker and the stderr open, then checks cleanup after the child finishes. A second one strips EDITOR and VISUAL at the dispatch boundary, where the launcher's own environment would otherwise mask what it forwards.
umputun
added a commit
that referenced
this pull request
Sep 24, 2026
…marks the reporter of #324 asked for marks to ride along in review history and restore with no flags. Four findings against it, now in the item: both read-latest-history.sh copies return the newest file, so a marks-only snapshot hides the annotated review; Rebuild and ReconcileReviewed drop paths missing from the current load, so a run under --only saves a smaller set and the next full run restores only that; there is no sound lookup key, since the binary never reads history and most modes record no ref or commit; and every run pays the preload fingerprint cost. also: preload must go through loadReviewedFingerprints so ReviewFingerprintStable still drops binary and placeholder rows, the persisted snapshot should carry the fingerprint version as its own field, and --filter-unreviewed (#366) makes the gap sharper. Stale finalize line numbers replaced with the symbol after the move to app/revdiff. Related to #324
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.
scripted launches can now enable the unreviewed file filter with
--filter-unreviewed,REVDIFF_FILTER_UNREVIEWED, or thefilter-unreviewedconfig key, without a manualFkeypress. Files disappear from the tree as they are marked reviewed; this change does not persist reviewed marks between sessions.the filter is cleared when a file-list load leaves one underlying file, where
Fis unavailable. This also fixes the filter staying active when a reload reduces a review to one file. Multiple underlying files with just one unreviewed file remain filtered, and reloads preserve a manual choice to turn the filter off.also fixes a stderr-capture leak when a herdr review outlives its launcher. The dispatched review acquires its own hard-link alias while the capture still exists, and removes that alias before publishing the exit code.
tests cover CLI, environment and config-file parsing, initial filter state, the load and reload cases, the abandoned-review cleanup and editor forwarding through the herdr dispatch. Documentation and both launcher usage comments are updated.
Fixed #365