Repository navigation
Conversation
Users can now add this line before sourcing the script: ```bash export GITSTATUS_USE_FULL_BRANCH_NAME=1 ``` If they do, branch names will not be truncated, no matter their length. Fixes romkatv#481.
aauren
added a commit
to aauren/gitstatus
that referenced
this pull request
Sep 10, 2026
The bundled prompts cut branch names and tags longer than 32 characters down to the first and last 12 with an ellipsis in between, and there was no way to turn that off short of copying gitstatus_prompt_update into your rc file. Setting GITSTATUS_USE_FULL_BRANCH_NAME=1 before sourcing gitstatus.prompt.sh or gitstatus.prompt.zsh now keeps the full name. This is PR romkatv#483 by chiphogg, mirrored in the zsh prompt for symmetry. One change from the PR: it treated any non-empty value as on, so GITSTATUS_USE_FULL_BRANCH_NAME=0 would also disable truncation. Here the value has to be 1, which is how GITSTATUS_ENABLE_LOGGING already works in both plugins. The fixture sources the real prompt scripts under bash and zsh against the daemon under test. The zsh half runs under zsh/zpty because gitstatus_start does setopt monitor, which needs a controlling tty. Based on romkatv#483 by chiphogg. Thanks for the good starting point.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Users can now add this line before sourcing the script:
export GITSTATUS_USE_FULL_BRANCH_NAME=1If they do, branch names will not be truncated, no matter their length.
Fixes #481.