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

umputun / revdiff / 23972507754
87%

Build:
DEFAULT BRANCH: master
Ran 04 Apr 2026 05:44AM UTC
Jobs 1
Files 12
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

04 Apr 2026 05:43AM UTC coverage: 92.019% (+0.3%) from 91.705%
23972507754

push

github

web-flow
Add no-git file review mode for --only flag (#12)

* feat: add FallbackRenderer and FileReader for no-git file review

Add FallbackRenderer that wraps *diff.Git and falls back to reading files
from disk for --only patterns not found in the git diff. Add FileReader as
a standalone Renderer for use when no git repo is available. Both use a
shared readFileAsContext helper that reads files as all-context DiffLines.

* feat: wire up makeRenderer for git/no-git renderer selection

Extract renderer-selection logic into makeRenderer() in cmd/revdiff/main.go.
When git is available, wrap diff.NewGit with FallbackRenderer. When no git
repo exists and --only is set, use FileReader directly. Add IsFileReader()
check in UI model to handle no-git mode gracefully.

* test: add context-only line tests for annotation store and syntax highlighting

Verify annotation store and syntax highlighting work correctly with
all-context DiffLines (no +/- changes), which is the mode used when
reviewing files outside of git diff.

* docs: update documentation for no-git file review mode

Update README with fallback behavior description, update CLAUDE.md with
new data flow details, and add context-only usage example to plugin
reference docs.

* fix: show line count instead of +0/-0 in status bar for context-only files

* docs: trim no-git mention from readme description

135 of 147 new or added lines in 3 files covered. (91.84%)

2525 of 2744 relevant lines covered (92.02%)

581.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
41.67
3.76% cmd/revdiff/main.go
6
94.74
diff/fallback.go
Jobs
ID Job ID Ran Files Coverage
1 23972507754.1 04 Apr 2026 05:44AM UTC 12
92.02
GitHub Action Run
Source Files on build 23972507754
  • Tree
  • List 12
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2731ac6f on github
  • Prev Build on master (#23966721161)
  • Next Build on master (#23972571982)
  • 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