From e9f82b41b9a3d4a5870cfe08d6cb2fc1b351cc96 Mon Sep 17 00:00:00 2001 From: Marc ROZANC Date: Sun, 22 Sep 2024 02:10:51 +0200 Subject: [PATCH] Update documentation --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 8b2a4af8..af8fb45f 100644 --- a/README.md +++ b/README.md @@ -236,7 +236,9 @@ e.g `${dirty:-SNAPSHOT}` resolves to `-SNAPSHOT` instead of `-DIRTY` - `${describe}` Will resolve to `git describe` output - `${describe.distance}` The distance count to last matching tag +- `${describe.distanceOrZero}` The distance count to last matching tag or 0 if no tag is found - `${describe.distance.snapshot}` Empty string on matching tag, `-SNAPSHOT` if `describe.distance > 0` +- `${describe.distanceOrZero.snapshot}` Empty string on matching tag, `-SNAPSHOT` if `describe.distanceOrZero > 0` - `${describe.tag}` The matching tag of `git describe` - `${describe.tag.version}` the tag version determined by regex `(?(?(?\d+)(?:\.(?\d+)(?:\.(?\d+))?)?)(?:-(?