Skip to content

switch: specify branch sort order in config or argument #5615

@caccavale

Description

@caccavale

Your message to us

Hey folks, thanks so much for the work on git town. Its a joy to use.

I work in a couple places where we prefix branches with the date in YYYYMM format. This causes the most recent branches to be at the bottom of git town switch. I'm curious if a config option or argument could be added to invert the order git town switch presents branches.

I took a look into internal/cmd/switch.go and internal/cli/dialog/switch_branch.go-- its unclear to me whether the order could be inverted at time of presentation or if the Lineage source depends on the current order 😔

Thanks again for the wonderful tool 👋

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions