Skip to content

Fix filtered history paging, Windows folder renames, untracked counts and Linux Clippy - #2

Merged
shrenixcodes merged 4 commits into
mainfrom
fix/post-0.4.70
Nov 29, 2026
Merged

shrenixcodes merged 4 commits into
mainfrom
fix/post-0.4.70

Conversation

@shrenixcodes

Copy link
Copy Markdown
Owner

Fixes four problems that shipped in v0.4.70.

Fixes

  1. Paging fails on history filtered to a branch or revision. git rev-parse --end-of-options prints the flag back as an output line, so it was saved in the next-page cursor and page 2 failed with '--end-of-options' is not a valid log cursor commit id. The flag is removed; log_page already rejects option-like revisions earlier. Only commit ids are accepted as cursor entries now.
  2. On Windows, folders can't be renamed while RustGit is watching them. The per-directory watcher holds a handle on every nested directory, and on Windows such a handle stops its parent folders from being renamed (Access is denied). On Windows the root is now watched once, recursively, and the debouncer still drops events from ignored folders. Linux and macOS keep per-directory watching.
    • Trade-off: on Windows, events from ignored folders such as target/ now arrive and are then discarded. Earlier versions worked roughly this way too.
  3. New-folder file counts include ignored files. The counts now come from git ls-files --others --exclude-standard, run once per batch of up to 100 folders. Output is capped at 2 MB, so if it's cut off the count shows as "N+". If Git fails, the folder appears without a count.
  4. Ubuntu Clippy fails on main. Removes the return that Clippy flagged in the Linux branch of launch_installer.

Testing

  • Added one regression test per bug in the first three fixes. The rename test fails on the old code with Access is denied; the other two bugs were reproduced by hand before the fix.
  • On Windows, cargo clippy --workspace --all-targets --locked -- -D warnings is clean and cargo test --workspace --locked passes.
  • Clippy for Linux wasn't run locally, so this PR's CI is the first check of fix 4.

🤖 Generated with Claude Code

shrenixcodes and others added 4 commits November 29, 2026 23:34
git rev-parse echoes --end-of-options back as an output line, so it was
saved in the next-page cursor and the second page of a branch-filtered
log failed validation. Revisions are already rejected when option-like,
so drop the flag and accept only commit ids as cursor entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each watch holds an open directory handle on Windows, and a handle on a
nested directory stops its ancestors from being renamed. Watch the root
once recursively there and keep dropping ignored paths in the debouncer.
Linux and macOS keep watching each non-ignored directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The folder badge counted every file on disk, including ignored ones such
as node_modules. Count with a bounded git ls-files --others
--exclude-standard call per batch of folders instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clippy on Linux rejected the early return and failed CI on main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shrenixcodes
shrenixcodes merged commit fd81c91 into main Nov 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant