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:
Martin Weissbach 2022-12-18 03:51:38 +01:00 committed by GitHub
parent aa6c2dd588
commit 0abf4b937e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -1642,8 +1642,9 @@ 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 |
| 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