Skip to content

Branches pane never marks the default branch under local branches #21

Description

@Defmon3

Seen on: component/git-history

What it fixes

In Git History's branches pane, the default branch (usually main) is never marked as the default in the local branches list. Only the remote copy gets the marker. Someone scanning local branches cannot tell which one is the default without opening the remote section, and the existing branch toolbar marks it correctly, so the two views disagree.

How to fix it

When the server lists local branches for the history pane, it should resolve the remote's default branch name and flag the matching local branch, the same way the branch toolbar's listing already does. Tags stay unflagged. Ships with a test for a repository whose default branch exists locally.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions