[PATCH 0/3] git-prompt: add quiet upstream indicator option
- From
- Kiril Ivanov via GitGitGadget <gitgitgadget@gmail.com>
- Date
- Nov 15, 2025, 18:54 UTC
- Message-ID
- <pull.2101.git.git.1763232863.gitgitgadget@gmail.com>
This patch series allows a cleaner git-prompt when the upstream indicator is not actionable.
In particular, the '=' to the upstream can be redundant noise if the user is always on a remote-tracking branch and only needs to be aware of any divergence.
Since SHOWUPSTREAM already supports various options, I propose a new 'quiet' option to limit it to actionable output (omit '=')
* Default: branch = * Verbose: branch|u= * Verbose name: branch|u= remote/branch * Quiet: branch * Verbose quiet: branch|u * Verbose quiet name: branch|u remote/branch
Ahead/behind output is unaffected (default <> or verbose +N-M).
Kiril Ivanov (3): t9903: shorten setup using test_commit t9903: add upstream indicator tests git-prompt: add quiet upstream indicator option
contrib/completion/git-prompt.sh | 14 ++++-- t/t9903-bash-prompt.sh | 86 ++++++++++++++++++++++++++------ 2 files changed, 80 insertions(+), 20 deletions(-)
base-commit: fd372d9b1a69a01a676398882bbe3840bf51fe72 Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2101%2Fivanovkirilg%2Fquiet-option-v1 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2101/ivanovkirilg/quiet-option-v1 Pull-Request: https://github.com/git/git/pull/2101
-- gitgitgadget