Repository navigation
Conversation
📊 Automated PR Analysis
SummaryFixes a bug in rtk ls where any line ending in a literal '.' character (e.g. filenames like 'report.', or symlinks pointing to '.') was incorrectly treated as a '.' or '..' pseudo-directory entry and dropped. The fix restricts dot-directory detection to lines that match the actual ls listing format with a literal dot-directory name after the date field, adding a fallback regex for localized month names and raw-fallback handling for unrecognized locale rows. Review Checklist
Analyzed automatically by wshm · This is an automated analysis, not a human review. |
pavelbe
force-pushed
the
fix/ls-trailing-dot-entries
branch
from
September 28, 2026 23:12
d70fd38 to
941db51
Compare
5 tasks done
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
rtk lssilently drops real entries such asreport., directories ending in a dot, andlink -> .. The dot-directory check treated any line ending in.as.or...Recognize only literal dot-directory names after the listing metadata. Preserve filename whitespace and retain raw fallback for unrecognized locale rows. The change is confined to the existing ls filter and its tests.
Test plan
report.; 41 ls tests pass after it.cargo test --all-targets: 4034 passed, 8 ignored, 0 filtered.cargo clippy --all-targets -- -D warnings, formatting check and build pass.Tests used disposable HOME/XDG paths with inherited agent-config overrides cleared; protected host configuration hashes stayed unchanged. The complete suite used Git 2.51.0 because an unchanged Git error-text test is version-dependent on Git 2.43.
AI assistance: implemented and reviewed with OpenAI Codex; the regression and local checks above were executed. No Windows or macOS runtime validation is claimed.