Skip to content

Modify Branch Name #559

Open
Open
@thomaswitt

Description

@thomaswitt

I would like to dynamically change the branch name, e.g. if it's too long or confirms has a certain condition. e.g. I am using gitbutler, and I get "gitbutler/workspace" as my branch name, which I would like to shorten to GB.

It seems to me that there's no official API to modify the branch name. I can only use GIT_PROMPT_BRANCH to do a prefix, but that's it. A possibility to provide a function to dynymically modify / shorten the branch name would be highly appreciated.

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