Skip to content

refactor(list): route ListItem::display_name through short_sha - #2584

Merged
max-sixty merged 1 commit into
mainfrom
display-name-via-short-sha
May 4, 2026
Merged

max-sixty merged 1 commit into
mainfrom
display-name-via-short-sha

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The last manual &self.head[..8] slice in the list path. Routes through the canonical short_sha instead, completing the cutover started in #2576 (every short-SHA emission through git's %h/rev-parse --short machinery) and #2577 (hoisting short_sha onto ListItem).

When short_sha is empty the function returns "". The unborn-branch case is caught by the branch arm. The only path where this falls through to an empty string is "detached HEAD where the commit_details_many batch failed" — already a degraded state with placeholders in every other cell, so an empty diagnostic label is acceptable.

This was written by Claude Code on behalf of @max-sixty

Replace the manual `&self.head[..8]` slice with a fall-through to the
canonical `short_sha`, completing the cutover started in #2576/#2577.

When `short_sha` is empty (null OID for unborn branches, batch failure)
the function returns "" — the unborn-branch case is caught by the
branch arm, and a batch failure already surfaces placeholders in every
other cell, so a degraded diagnostic label is acceptable.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit d7acb8d into main May 4, 2026
27 checks passed
@max-sixty
max-sixty deleted the display-name-via-short-sha branch May 4, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants