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

umputun / revdiff / 24050513781
90%

Build:
DEFAULT BRANCH: master
Ran 06 Apr 2026 08:48PM UTC
Jobs 1
Files 19
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

06 Apr 2026 08:47PM UTC coverage: 91.173% (-0.6%) from 91.725%
24050513781

push

github

web-flow
Add git blame gutter toggle (B key) (#38)

* Add git blame gutter toggle (B key)

Show author name and relative commit age per line in a gutter column,
toggled with the B key. Blame data loads asynchronously via git blame
and is keyed by new-side line numbers (blank for removed lines/dividers).

- Add diff/blame.go with FileBlame parser and RelativeAge formatter
- Add Blamer interface in ui/, wired via ModelConfig from cmd/main.go
- Add blameGutter rendering in diffview.go alongside lineNumGutter
- Extract shared gutter helpers (lineGutters, gutterExtra, gutterBlanks,
  applyHorizontalScroll) to reduce duplication across render paths
- Add ActionToggleBlame keymap action bound to B
- Update status bar mode icons to show @ when blame is active
- Update README, docs, site, CLAUDE.md, and plugin references

* Fix all golangci-lint warnings

- Extract writeStagedBlameFile() to reduce nestif complexity in blame.go
- Combine param types in FileBlame signature (gocritic)
- Handle errcheck/gosec on temp file cleanup paths
- Extract deletePlaceholderVisualHeight() to reduce nestif in annotate.go
- Remove stale //nolint:gosec directives from diff.go and diff_test.go
- Pre-allocate slices in directory.go, fallback.go, theme.go, filetree.go,
  mdtoc.go, and model_test.go; preserve nil-vs-empty semantics in fallback.go

* Fix blame review follow-ups and persist view modes

* Fix blameTargetRef to handle triple-dot ref syntax

strings.Split("A...B", "..") produced ".B" which caused git blame
to fail or blame the wrong revision. Use strings.Cut and check for
"..." before ".." to correctly extract the target ref.

* Restore //nolint:gosec for internal exec.Command calls

CI golangci-lint flags G204 on exec.Command with variable args.
These are safe — git args are constructed internally, not from user input.

233 of 304 new or added lines in 13 files covered. (76.64%)

4080 of 4475 relevant lines covered (91.17%)

469.19 hits per line

Uncovered Changes

Lines Coverage ∆ File
41
93.25
-3.55% ui/model.go
15
86.61
diff/blame.go
8
58.82
-1.35% cmd/revdiff/main.go
7
94.8
-0.13% ui/diffview.go
Jobs
ID Job ID Ran Files Coverage
1 24050513781.1 06 Apr 2026 08:48PM UTC 19
91.17
GitHub Action Run
Source Files on build 24050513781
  • Tree
  • List 19
  • Changed 7
  • Source Changed 0
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 21723ce8 on github
  • Prev Build on master (#24050442682)
  • Next Build on master (#24051176400)
  • 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