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

dcdpr / jp / 25038269703 / 1
66%
main: 66%

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2026 06:52AM UTC
Files 291
Run time 6s
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

28 Apr 2026 06:48AM UTC coverage: 64.142% (+0.05%) from 64.094%
25038269703.1

push

github

web-flow
chore(tools): Use content-addressed IDs for diff hunks (#580)

Replace positional integer patch IDs with 12-char SHA1 hex hashes
derived from the hunk text itself.

Positional IDs are fragile: staging one hunk removes it from the listing
and renumbers every hunk after it. This means a stale ID silently
aliases to a different hunk, producing incorrect staging.
Content-addressed IDs decouple identity from snapshot ordering — the
same logical change always has the same ID, and a staged hunk simply
disappears from the next listing rather than shifting its neighbours.

A new `hunk` module provides `hunk_id()`, `split_hunks()`, and
`diff_header()`. `list_patches` now assigns IDs via `hunk_id()`;
`stage_patch` and `stage_patch_lines` look up hunks by ID and fail
loudly when a stale or unknown ID is passed, instructing the agent to
re-run `git_list_patches`. Hunks are always emitted in file order when
assembling a multi-hunk patch, regardless of the order IDs were
requested, satisfying `git apply`'s monotonic-line requirement.

The tool schema and docs for `git_stage_patch` and
`git_stage_patch_lines` are updated to reflect the new `string` type for
patch IDs, with updated examples using hex strings.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

23388 of 36463 relevant lines covered (64.14%)

215.86 hits per line

Source Files on job 25038269703.1
  • Tree
  • List 291
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25038269703
  • 352142eb on github
  • Prev Job for on main (#24936242053.1)
  • Next Job for on main (#25065990654.1)
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