Skip to content

Distinguish merge commits in the active commit view - #1

Open
xordanblu wants to merge 2 commits into
mainfrom
codex/show-merge-commit-label
Open

Distinguish merge commits in the active commit view#1
xordanblu wants to merge 2 commits into
mainfrom
codex/show-merge-commit-label

Conversation

@xordanblu

@xordanblu xordanblu commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Refs gogs#2696

Prepared for the funded IssueHunt task.

What changed

  • Style the parent-count metadata as a muted badge only when the active React commit view contains at least two adjacent parent links.
  • Leave ordinary one-parent commits unchanged.
  • Scope the selector to the commit-diff page.

Why it identifies merge commits

Git represents a merge commit with more than one parent. The current React page already renders each parent SHA as an adjacent commit link. The selector activates only when the parent-count span is followed by at least two such links.

Validation

  • Branch based on current main.
  • Only web/src/index.css changed: 15 additions.
  • Web workflow: passed.
  • Shell workflow: passed.
  • Formatting, lint, and production build all pass.

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.

1 participant