diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-06-08 12:47:19 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-06-08 12:47:19 +0300 |
commit | 4ba3c010f6fa66dcf7d785251c80c416454b6e90 (patch) | |
tree | 259b3b075fcb7c969785803897936bea9fb37d2a /README.md | |
parent | b9c62ca02827c828fb544033950232e5426930ad (diff) |
display "wip" in git status if the latest commit's summary contains "wip" or "WIP" (#1425)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -899,13 +899,14 @@ Zsh but it won't do anything. When using Lean, Classic or Rainbow style, Git status may look like this: ```text -feature:master ⇣42⇡42 ⇠42⇢42 *42 merge ~42 +42 !42 ?42 +feature:master wip ⇣42⇡42 ⇠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 --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}` | |