git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/3] git-prompt: add quiet upstream indicator option

From
KGKiril 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
Next: Kiril Ivanov via GitGitGadget
Message 1 of 10 in “git-prompt: add quiet upstream indicator option”
  1. 0/3 git-prompt: add quiet upstream indicator optionKiril Ivanov via GitGitGadget, Nov 15, 2025
  2. 1/3 t9903: shorten setup using test_commitKiril Ivanov via GitGitGadget, Nov 15, 2025
  3. 2/3 t9903: add upstream indicator testsKiril Ivanov via GitGitGadget, Nov 15, 2025
  4. 3/3 git-prompt: add quiet upstream indicator optionKiril Ivanov via GitGitGadget, Nov 15, 2025
  5. D. Ben KnobleNov 20, 2025
  6. Eric SunshineNov 20, 2025
  7. D. Ben KnobleNov 20, 2025
  8. Junio C HamanoNov 15, 2025
  9. Kiril IvanovNov 16, 2025
  10. Junio C HamanoNov 16, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.