• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

umputun / revdiff / 24090286663

07 Apr 2026 03:40PM UTC coverage: 90.074% (-0.5%) from 90.562%
24090286663

push

github

web-flow
feat: reviewed file marks and A/M/D status indicators in file tree (#54)

* feat: add reviewed file marks and A/M/D status indicators in file tree

Add space bar toggle to mark files as reviewed (green ✓ checkmark in tree),
with progress shown in status bar (✓ N/M) and mode icon strip.

Change Renderer.ChangedFiles to return []FileEntry with git status info,
enabling A/M/D indicators in the tree sidebar with semantic colors
(green=added, red=deleted, muted=modified).

* refactor: simplify reviewed marks and file status code

- Add FileStatus type with constants (FileAdded, FileModified, etc.)
  replacing raw string literals
- Pre-compute status styles (StatusAdded, StatusDeleted, StatusDefault)
  on styles struct instead of allocating per render
- Remove dead indent parameter from renderFileEntry
- Move status styling to styles.fileStatusStyle() method
- Build []FileEntry directly in DirectoryReader without intermediate
  []string allocation
- Remove WHAT comments that restated the code

* refactor: use NUL-terminated git output and streamline file tree construction

Switch ChangedFiles to git diff --name-status -z for robust parsing of
filenames with special characters. Add newFileTreeFromEntries to eliminate
the roundtrip of extracting paths then re-inserting statuses. Fix tree-pane
mark-reviewed to use selected row instead of stale currFile.

122 of 154 new or added lines in 9 files covered. (79.22%)

1 existing line in 1 file now uncovered.

4365 of 4846 relevant lines covered (90.07%)

439.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.79
/app/diff/diff.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc