@@ -52,14 +52,15 @@ Here is a list of attributes of the git object:
52
52
53
53
54
54
| Attribute | Description |
55
- | ----------------- | ---------------------------------------------- |
55
+ | ------------------- | ------------------------------------------------ |
56
56
| ` short_commit ` | short hash of the last commit (e.g. _ 2bd7950_ ) |
57
57
| ` commit ` | long hash of the last commit |
58
58
| ` author ` | author's name |
59
59
| ` author_email ` | author's email |
60
60
| ` committer ` | committer's name |
61
61
| ` committer_email ` | committer's email |
62
62
| ` tag ` | last active tag of the repo |
63
+ | ` short_tag ` | last active tag of the repo, abbreviated |
63
64
| ` date ` | full date of the commit (as a date object) |
64
65
| ` date_ISO ` | full date of the commit (as an ISO string) |
65
66
| ` message ` | full message of the last commit |
@@ -104,6 +105,13 @@ which would return e.g.
104
105
105
106
May 13, 2020 16:08:52
106
107
108
+ ## ` tag ` and ` short_tag `
109
+
110
+ The tag attribute shows the full description of the tag, for
111
+ example ` v1.0.4-14-g2414721 ` . Meanwhile, ` short_tag ` shows the
112
+ tag name without any suffix, for example ` v1.0.4 ` . The later can
113
+ be usefull when showing the latest release.
114
+
107
115
## Tip: Is this really a git repo?
108
116
109
117
In case you are not sure that there really is a git repo, you could use:
0 commit comments