summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-10-16 17:07:32 +0100
committerMichael Allen <michael@michaelallen.io>2015-10-16 17:07:32 +0100
commita72cc5136a8e9f25d9b3c60922e2f390bbdfae01 (patch)
treec7a1c3241da26496cfa9148feb2d9f16308ee4ef /README.md
parentf043242a00cc9a178ffa8205462c9cd61ffe36b2 (diff)
parent127e3e5b6d9f95062c6e05e083fbda1860eb647f (diff)
downloadgit-sonar-a72cc5136a8e9f25d9b3c60922e2f390bbdfae01.tar.gz
git-sonar-a72cc5136a8e9f25d9b3c60922e2f390bbdfae01.zip
Merge pull request #80 from cbandera/feature/stash_indicator
Feature/stash indicator
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7686edb..2f508a8 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ last few years. Maybe it can help you too.
- [Files status](#files-status)
- [Local commits status](#local-commits-status)
- [Remote commits status](#remote-commits-status)
+ - [Stash status](#stash-status)
- [(Optional) Auto-fetch repos](#optional-auto-fetch-repos)
- [Customise your prompt](#customise-your-prompt)
- [Support](#support)
@@ -156,6 +157,13 @@ Prompt | Meaning
The use of feature is controlled by the `GIT_RADAR_FORMAT` environment variable.
See [Customise your prompt](#customise-your-prompt) for how to personalise this.
+### Stash status
+The prompt will show you whether and how many stashes you have stored.
+
+Prompt | Meaning
+---------------------------|---------------
+![git:(master) 1≡] | We have one stash
+
If you don't rely on this status, you can always hide this part of the prompt by
[customising your prompt](#customise-your-prompt)
@@ -194,6 +202,7 @@ Remote commits | `%{remote}`
Local commits | `%{local}`
Branch | `%{branch}`
File changes | `%{changes}`
+Stashes | `%{stash}`
You can create any prompt shape you prefer by exporting `GIT_RADAR_FORMAT` with
your preferred shape. The control strings above will be replaced with the output
@@ -510,6 +519,18 @@ tracked by git.
It is unset by `GIT_RADAR_COLOR_CHANGES_RESET` which you can set if you want
a different background colour to return to.
+##### Colouring the stash status
+
+**GIT_RADAR_COLOR_STASH='[colour code]'**
+```
+git:(my-branch) 1≡
+ ^
+```
+The colour to use for the lines that indicates how many stashes you have stored.
+
+It is unset by `GIT_RADAR_COLOR_STASH_RESET` which you can set if you want
+a different background colour to return to.
+
## License
Git Radar is licensed under the MIT license.
@@ -517,6 +538,7 @@ Git Radar is licensed under the MIT license.
See [LICENSE] for the full license text.
[LICENSE]: https://github.com/michaeldfallen/git-radar/blob/master/LICENSE
+[git:(master) 1≡]: https://raw.githubusercontent.com/michaeldfallen/git-radar/master/images/stash.png
[git:(master) 3A]: https://raw.githubusercontent.com/michaeldfallen/git-radar/master/images/untracked.png
[git:(master) 2D2M]: https://raw.githubusercontent.com/michaeldfallen/git-radar/master/images/unstaged.png
[git:(master) 1M1R]: https://raw.githubusercontent.com/michaeldfallen/git-radar/master/images/added.png