Skip to content

fix(git): correct typo rev_names -> ref_names in merge context - #62

Merged
dlyongemallo merged 1 commit into
mainfrom
fix_ref_names_typo
Mar 27, 2026
Merged

fix(git): correct typo rev_names -> ref_names in merge context#62
dlyongemallo merged 1 commit into
mainfrom
fix_ref_names_typo

Conversation

@dlyongemallo

Copy link
Copy Markdown
Owner

The theirs entry in get_merge_context used rev_names instead of ref_names, so the ref name was never displayed in the winbar. (This bug has been present on the original sindrets repro since 168c8fc.)

Copilot AI review requested due to automatic review settings March 27, 2026 06:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a merge-context display bug in the Git adapter where the theirs side used the wrong field name (rev_names), preventing the ref name from being shown (e.g., in winbar rendering that expects ref_names).

Changes:

  • Rename ret.theirs.rev_names to ret.theirs.ref_names in GitAdapter:get_merge_context() to match the expected vcs.MergeContext shape.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dlyongemallo
dlyongemallo merged commit 3836dd7 into main Mar 27, 2026
6 checks passed
@dlyongemallo
dlyongemallo deleted the fix_ref_names_typo branch March 27, 2026 06:25
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