git-prompt: add quiet upstream indicator option
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | t9903: shorten setup using test_committ/ | +11 | 0 replies | |
| 2/3 | t9903: add upstream indicator testst/ | +59 | 0 replies | |
| 3/3 | git-prompt: add quiet upstream indicator optioncontrib/ t/ | +15 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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