Skip to content

git-prompt: add quiet upstream indicator option

Kiril Ivanov via GitGitGadget git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3t9903: shorten setup using test_committ/t9903-bash-prompt.sh+11 -160 replies
2/3t9903: add upstream indicator testst/t9903-bash-prompt.sh+59 -00 replies
3/3git-prompt: add quiet upstream indicator optioncontrib/completion/git-prompt.sh t/t9903-bash-prompt.sh+15 -93 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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

Signature · 1 line
gitgitgadget