Skip to content

Omit remote name if there's only one remote #11

@waldyrious

Description

@waldyrious

Right now every remote branch is shown with the remote prefix, which is a bit wasteful, and even leads to weird truncation of branch names when the Commit history > Ref indicators configuration option is set to "Truncate long ref names".

I would much rather see:

☁️ /some-branch-name Example commit message

than

☁️ origin/s...nch-name Example commit message

IMHO, if there's a single remote, then the name could be omitted from the graph by default, even if the Commit history > Ref indicators configuration option is set to "Show full ref names".

Alternatively, a new config option (say, Commit history > Remote names) could be added in parallel to the one for ref names, allowing us to pick between "Icons Only", "Omit if there's only one remote", and "Show full remote names".

Either solution would be fine by me, although I'd have a slight preference for the latter as it gives me more control as the user. 😁

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