From d1ed61c9727693e382d328c8bc3a9e58be8a65bb Mon Sep 17 00:00:00 2001 From: romkatv Date: Sun, 9 Feb 2020 15:56:17 +0100 Subject: [PATCH] docs: add ahead/behind the push remote to the legend --- README.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 55fa28d8..80ebcb93 100644 --- a/README.md +++ b/README.md @@ -708,16 +708,18 @@ feature:master ⇣42⇡42 *42 merge ~42 +42 !42 ?42 | Symbol | Meaning | Source | | --------- | -------------------------------------------------------------------- | ------------------------------------------------------ | -| `feature` | current branch; replaced with `#tag` or `@commit` if not on a branch | `git status` | +| `feature` | current branch; replaced with `#tag` or `@commit` if not on a branch | `git status --ignore-submodules=dirty` | | `master` | remote tracking branch; only shown if different from local branch | `git rev-parse --abbrev-ref --symbolic-full-name @{u}` | -| `⇣42` | this many commits behind the remote | `git status` | -| `⇡42` | this many commits ahead of the remote | `git status` | +| `⇣42` | this many commits behind the remote | `git status --ignore-submodules=dirty` | +| `⇡42` | this many commits ahead of the remote | `git status --ignore-submodules=dirty` | +| `⇠42` | this many commits behind the push remote | `git rev-list --left-right --count HEAD...@{push}` | +| `⇢42` | this many commits ahead of the push remote | `git rev-list --left-right --count HEAD...@{push}` | | `*42` | this many stashes | `git stash list` | -| `merge` | repository state | `git status` | -| `~42` | this many merge conflicts | `git status` | -| `+42` | this many staged changes | `git status` | -| `!42` | this many unstaged changes | `git status` | -| `?42` | this many untracked files | `git status` | +| `merge` | repository state | `git status --ignore-submodules=dirty` | +| `~42` | this many merge conflicts | `git status --ignore-submodules=dirty` | +| `+42` | this many staged changes | `git status --ignore-submodules=dirty` | +| `!42` | this many unstaged changes | `git status --ignore-submodules=dirty` | +| `?42` | this many untracked files | `git status --ignore-submodules=dirty` | *Related*: [How do I change the format of Git status?](#how-do-i-change-the-format-of-git-status)