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

rm-hull / git-commit-summary / 27483963148
31%

Build:
DEFAULT BRANCH: main
Ran 14 Jun 2026 12:51AM UTC
Jobs 1
Files 16
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

14 Jun 2026 12:51AM UTC coverage: 31.212% (-1.7%) from 32.897%
27483963148

push

github

web-flow
feat: add toggleable raw diff view with color support (#112)

* wip

* refactor: encapsulate diff view into its own component

Migrated the diff view logic from the main model into a dedicated
`diffViewModel` struct to improve separation of concerns and
maintainability
of the Bubble Tea model.

- Introduced `showDiffView` state.
- Encapsulated UI rendering and message handling for the diff view.
- Simplified the main `Model` update and view logic by delegating to the
  new component.

* style: update commit view help text style

Apply strikethrough to the CTRL+K keybinding in the help text to
visually indicate the action is currently unavailable or disabled.

* Update internal/git/client.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* refactor: extract git diff argument builder

- Consolidate duplicate diff argument construction into `diffArgs`
helper
- Update `diff_view` UI to mark removed shortcuts as strikethrough

* refactor: improve git diff logic and UI cleanup

- Update `diffArgs` to accept an exclusion flag for better control.
- Enhance error handling in `DiffWithColor` for `io.Copy` and
`cmd.Wait`.
- Simplify `repeatCount` calculation in `diffViewModel` using `max`.

* refactor: move boxStyle to diffViewModel struct

Cache the `lipgloss.Style` in the `diffViewModel` struct instead of
re-instantiating it on every view update to improve rendering
efficiency.

* refactor: streamline view initialization and update UI keys

- Inline `viewport` initialization in `commitViewModel`.
- Update `diffViewModel` help text to include new keybindings:
    - **CTRL+K**: Clear
    - **CTRL+P**: Editor (swapped from Preview)

* refactor: unify diff logic in git client

Consolidate `Diff` and `DiffWithColor` into a single, parameterized
`Diff` method to reduce code duplication and simplify the `GitClient`
interface.

- Updated `GitClient` interface to support color and exclusion flags.
- Simplified `Mo... (continued)

22 of 137 new or added lines in 4 files covered. (16.06%)

3 existing lines in 2 files now uncovered.

412 of 1320 relevant lines covered (31.21%)

0.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
54
8.7
-2.07% internal/git/client.go
33
25.0
internal/ui/diff_view.go
22
58.33
-5.72% internal/ui/model.go
6
23.79
-0.88% internal/ui/commit_view.go

Coverage Regressions

Lines Coverage ∆ File
2
58.33
-5.72% internal/ui/model.go
1
23.79
-0.88% internal/ui/commit_view.go
Jobs
ID Job ID Ran Files Coverage
1 27483963148.1 14 Jun 2026 12:51AM UTC 16
31.21
GitHub Action Run
Source Files on build 27483963148
  • Tree
  • List 16
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 13227cf0 on github
  • Prev Build on main (#27482025740)
  • 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