mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
docs(config): clarify git-commit tag variable (#4729)
The `git_commit` module uses a `tag` variable in its format string, which is not explained in the Variables section of this module. Missing clarification of this `tag` variable is added to the documentation of the `git_commit` module. Fixes starship/4640
This commit is contained in:
@@ -1641,10 +1641,11 @@ The `git_commit` module shows the current commit hash and also the tag (if any)
|
||||
|
||||
### Variables
|
||||
|
||||
| Variable | Example | Description |
|
||||
| -------- | --------- | ----------------------------------- |
|
||||
| hash | `b703eb3` | The current git commit hash |
|
||||
| style\* | | Mirrors the value of option `style` |
|
||||
| Variable | Example | Description |
|
||||
| -------- | --------- | -------------------------------------------- |
|
||||
| hash | `b703eb3` | The current git commit hash |
|
||||
| tag | `v1.0.0` | The tag name if showing tag info is enabled. |
|
||||
| style\* | | Mirrors the value of option `style` |
|
||||
|
||||
*: This variable can only be used as a part of a style string
|
||||
|
||||
|
||||
Reference in New Issue
Block a user