Skip to content
This repository was archived by the owner on Apr 10, 2022. It is now read-only.

Commit bc83733

Browse files
ARTOO: Use git describe for version strings
1 parent 418fc40 commit bc83733

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

git_describe_tag

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
2-
# this command should really execute:
3-
# git describe --tags
4-
# but we don't have any version tags in the repo yet, so lets fake it:
5-
echo v3.0.0
2+
3+
## Returns the most recent release tag string
4+
## If the head is the most recent tag, it will display only the tag such as v3.0.0
5+
## If there are untagged commits after the last tag, it will display something v3.0.0-2-876FH
6+
git describe --tags
7+

0 commit comments

Comments
 (0)