Skip to content

Commit 469d497

Browse files
author
TheSnoozer
authored
Merge pull request #263 from TheSnoozer/master
Add the 'tags'-option to the main example configuration
2 parents 7fcee77 + e808f91 commit 469d497

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,16 @@ It's really simple to setup this plugin; below is a sample pom that you may base
366366

367367
<!-- Only consider tags matching the given pattern. This can be used to avoid leaking private tags from the repository. -->
368368
<match>*</match>
369-
369+
370+
<!--
371+
when you run git-describe it only looks only for *annotated tags* by default
372+
if you wish to consider *lightweight tags* in your describe as well you would need to switch this to *true*
373+
374+
The difference between *annotated tags* and *lightweight tags* is outlined in more depth here:
375+
https://github.com/ktoso/maven-git-commit-id-plugin/#git-describe-and-a-small-gotcha-with-tags
376+
-->
377+
<tags>false</tags>
378+
370379
<!--
371380
always print using the "tag-commits_from_tag-g_commit_id-maybe_dirty" format, even if "on" a tag.
372381
The distance will always be 0 if you're "on" the tag.

0 commit comments

Comments
 (0)