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

umputun / revdiff / 24370599519
90%

Build:
DEFAULT BRANCH: master
Ran 13 Apr 2026 10:41PM UTC
Jobs 1
Files 49
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

13 Apr 2026 10:40PM UTC coverage: 88.775% (+0.08%) from 88.699%
24370599519

push

github

web-flow
Add `--include` prefix filter flag (#103)

* feat: add IncludeFilter with shared prefix helpers

Extract matchesPrefix() and normalizePrefixes() from ExcludeFilter into
shared prefix.go helpers. Create IncludeFilter that keeps only files
matching given prefixes, mirroring ExcludeFilter's decorator pattern.

* feat: add --include CLI flag with validation and tests

* feat: wire IncludeFilter into renderer factories

Add include []string parameter to makeGitRenderer, makeHgRenderer, and
makeNoVCSRenderer. IncludeFilter wraps before ExcludeFilter so include
narrows first, then exclude refines. Update setupVCSRenderer to pass
opts.Include. Add tests for include wrapping, all-files+include, and
functional include+exclude composition.

* feat: add --include flag documentation across all doc targets

* fix: address code review findings

- Add diff.IncludeFilter to Renderer implementors list in CLAUDE.md
- Update gotcha bullet with --include filtering and --stdin mutual exclusivity
- Add --include example to Pi plugin SKILL.md

* chore: remove implementation plan file

* refactor: move shared prefix helpers from prefix.go into diff.go

Move matchesPrefix and normalizePrefixes to the bottom of diff.go and
their tests to diff_test.go. Drop duplicate tests from include_test.go
and exclude_test.go. Delete prefix.go.

* refactor: remove unreachable include/exclude from makeNoVCSRenderer

No-VCS mode requires --only, which is mutually exclusive with --include.
--exclude on FileReader (which only returns --only files) is a no-op.
Remove both filter params and simplify to direct FileReader return.

* fix: handle empty normalized include prefixes as no-op

When all --include prefixes normalize to empty (e.g. REVDIFF_INCLUDE=,),
treat as no-op instead of silently dropping all files. Also remove
unreachable include/exclude params from makeNoVCSRenderer since no-VCS
mode requires --only which is mutually exclusive with --include.

56 of 59 new or added lines in 4 files covered. (94.92%)

6580 of 7412 relevant lines covered (88.77%)

349.18 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
48.59
1.16% app/main.go
Jobs
ID Job ID Ran Files Coverage
1 24370599519.1 13 Apr 2026 10:41PM UTC 49
88.77
GitHub Action Run
Source Files on build 24370599519
  • Tree
  • List 49
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1ec113ca on github
  • Prev Build on master (#24357008979)
  • Next Build on master (#24370983572)
  • 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