Skip to content

How to show full branch name? #481

@chiphogg

Description

@chiphogg

(I know the project is close-to-unmaintained, but I'm hoping it will be very quick to point me in the right direction for how to solve this.)

I love this project, but the branch name abbreviation drives me absolutely batty. The way we use git at work, all my branches start with the same chiphogg/ prefix, which thus contains zero information. And the end of the branch often includes #PROJ-1234 suffixes, which all kinda blend together. The real useful information is in the middle!

I want to configure the prompt to print the full branch name, always, no matter how long it is. Which pathway(s) are available to me?

  1. Follow the copy-and-modify approach at the end of the bash section
  2. Provide a PR to add a new environment variable that a user can set, to gate what I assume is the truncation code
  3. Fork this project and delete the truncation code
  4. ...something else?

Thanks in advance!

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