Skip to content

[FR] : A brand-new decorator (branch) display #2369

@heartacker

Description

@heartacker

Here is a concise overview of the key branch decorator cases now implemented:

  1. The "Family" Case (Ownership)
    Local branches act as "heads," automatically grouping all tracked remotes AND same-named sibling remotes into a single pill.
  • Format: [ 💻 H ⇌ ☁️ origin | ≠ gitlab ]
  • Logic: H tracks origin/H, while gitlab/H is just a sibling at the same location.
  1. Tracking Distinction
    We use specific symbols to clarify the relationship between local and remote:
  • ⇌ (Official Tracking): Points to the actual upstream configured in Git.
  • ≠ (Sibling/Inequality): Marks remotes that share the same branch name but are NOT the official upstream.
  1. Smart Prefix Bolding
    Remote prefixes are automatically identified and bolded to improve visual hierarchy.
  • Format: [ ☁️ origin/main ] or [ ☁️ upstream/master ]
  • Result: You see the "Where" (Remote) instantly, separate from the "What" (Branch).
  1. Common Divisor Merge
    Untracked remotes with matching suffixes are collapsed into a clean group to save space.
  • Format: [ ☁️ origin | gitlab : feat/search-v3 ]
  • Logic: Multiple remotes sharing one common branch name, separated by :.
  1. The "Perfect Match" (P0)
    If the local name and remote name are identical, we hide the redundant suffix.
  • Format: [ 💻 main ⇌ ☁️ origin ] (instead of origin/main)
Image

Metadata

Metadata

Assignees

Labels

not-plannedIt's not planned in the future

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions