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

umputun / revdiff / 24120367860
87%

Build:
DEFAULT BRANCH: master
Ran 08 Apr 2026 05:59AM UTC
Jobs 1
Files 20
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Apr 2026 05:58AM UTC coverage: 89.578% (-0.5%) from 90.057%
24120367860

push

github

web-flow
feat: show untracked and staged-only files in file tree (u toggle) (#62)

* feat: add u toggle to show/hide untracked files in file tree

Read-only implementation — no git mutations, no interface pollution.
- UntrackedFiles() added only to *Git, exposed via ModelConfig.LoadUntracked callback
- u key toggles untracked file visibility in tree
- ? icon shown in status bar when active

* fix: show untracked file contents as all-added lines, clear diff on empty tree

* feat: always show staged-only files (new files added to index)

* fix: preserve file selection when toggling untracked files

* feat: show ? status icon for untracked files in file tree

* fix: use m.diffLines for highlighting after untracked fallback, wrap errors

* fix: preserve reviewed marks when toggling untracked files

* fix: save reviewed marks BEFORE rebuilding tree, not after

* address review feedback: tests, error handling, dedup, gated fallback

1. Add tests for UntrackedFiles, ReadFileAsAdded, toggle cycle,
   staged-only merge, dedup, and gated untracked fallback
2. Align ReadFileAsAdded with readFileAsContext: broken symlink
   handling, non-regular file placeholder, error wrapping
3. Log staged/untracked fetch failures as warnings instead of
   silently ignoring them
4. Gate handleFileLoaded disk fallback to FileUntracked status only
5. Dedup untracked files against existing entries (staged + unstaged)

* restrict staged-only merge to FileAdded, O(1) restoreReviewed

* log untracked fallback read errors, add broken symlink test for ReadFileAsAdded

93 of 137 new or added lines in 7 files covered. (67.88%)

1 existing line in 1 file now uncovered.

4538 of 5066 relevant lines covered (89.58%)

425.93 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
92.71
-0.85% app/ui/model.go
10
57.05
-0.66% app/main.go
8
92.11
-1.73% app/ui/filetree.go
7
87.57
-2.24% app/diff/fallback.go
2
84.65
-0.14% app/diff/diff.go
2
93.88
-0.89% app/ui/styles.go

Coverage Regressions

Lines Coverage ∆ File
1
57.05
-0.66% app/main.go
Jobs
ID Job ID Ran Files Coverage
1 24120367860.1 08 Apr 2026 05:59AM UTC 20
89.58
GitHub Action Run
Source Files on build 24120367860
  • Tree
  • List 20
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 490d066f on github
  • Prev Build on master (#24119004611)
  • Next Build on master (#24123422399)
  • Delete
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