2022-12-02 21:50:04 -03:00
|
|
|
# Git
|
|
|
|
|
|
|
|
> Since v1.14.0.
|
|
|
|
|
|
|
|
This allows you to change the behavior of some Git commands.
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
# .goreleaser.yaml
|
|
|
|
git:
|
|
|
|
# What should be used to sort tags when gathering the current and previous
|
|
|
|
# tags if there are more than one tag in the same commit.
|
|
|
|
#
|
2023-04-02 17:16:21 -03:00
|
|
|
# Default: '-version:refname'
|
2022-12-02 21:50:04 -03:00
|
|
|
tag_sort: -version:creatordate
|
2023-03-20 02:19:40 +01:00
|
|
|
|
|
|
|
# What should be used to specify prerelease suffix while sorting tags when gathering
|
|
|
|
# the current and previous tags if there are more than one tag in the same commit.
|
|
|
|
#
|
2023-04-02 17:16:21 -03:00
|
|
|
# Since: v1.17
|
2023-03-20 02:19:40 +01:00
|
|
|
prerelease_suffix: "-"
|
2022-12-02 21:50:04 -03:00
|
|
|
```
|