aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-06-17 16:20:14 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-06-17 16:20:14 +0300
commit606d4a85a9b8f4a29d5e9b1bce31f22fe6f7fb30 (patch)
tree734ffe4c1bbc85f891b455299977ccb1a9ec2726
parent717573d845944c32e8a42059d21052e72972b4f2 (diff)
readme: update git commands for ahead/behind arrows
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 3a012285..6a18965a 100644
--- a/README.md
+++ b/README.md
@@ -910,10 +910,10 @@ feature:master wip ⇣42⇡42 ⇠42⇢42 *42 merge ~42 +42 !42 ?42
| `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}` |
| `wip` | the latest commit's summary contains "wip" or "WIP" | `git show --pretty=%s --no-patch HEAD` |
-| `⇣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 commits behind the remote | `git rev-list --right-only --count HEAD...@{upstream}` |
+| `⇡42` | this many commits ahead of the remote | `git rev-list --left-only --count HEAD...@{upstream}` |
+| `⇠42` | this many commits behind the push remote | `git rev-list --right-only --count HEAD...@{push}` |
+| `⇢42` | this many commits ahead of the push remote | `git rev-list --left-only --count HEAD...@{push}` |
| `*42` | this many stashes | `git stash list` |
| `merge` | repository state | `git status --ignore-submodules=dirty` |
| `~42` | this many merge conflicts | `git status --ignore-submodules=dirty` |