在以下场景中,我期望 jgitver 使用版本4.2.4-rc3-SNAPSHOT
(最后一个轻量级标签 + SNAPSHOT)。然而,这不会发生。
[DEBUG] jgitver calculated version number: 4.2.4-SNAPSHOT
[DEBUG] setting property jgitver.calculated_version with "4.2.4-SNAPSHOT"
[DEBUG] setting property jgitver.dirty with "true"
[DEBUG] setting property jgitver.head_committer_name with "Roberto Morávia"
[DEBUG] setting property jgitver.head_commiter_email with "roberto.moravia@agency"
[DEBUG] setting property jgitver.head_commit_datetime with "Fri Apr 9 15:46:54 2021 +0100"
[DEBUG] setting property jgitver.git_sha1_full with "e4c8f3459a633ba607b0a8bc76eee37323aa2"
[DEBUG] setting property jgitver.git_sha1_8 with "e4c8f345"
[DEBUG] setting property jgitver.branch_name with ""
[DEBUG] setting property jgitver.head_tags with ""
[DEBUG] setting property jgitver.head_annotated_tags with ""
[DEBUG] setting property jgitver.head_lightweight_tags with ""
[DEBUG] setting property jgitver.head_version_tags with ""
[DEBUG] setting property jgitver.head_version_annotated_tags with ""
[DEBUG] setting property jgitver.head_version_lightweight_tags with ""
[DEBUG] setting property jgitver.base_tag with "4.2.4-rc3"
[DEBUG] setting property jgitver.base_tag_type with "LIGHTWEIGHT"
[DEBUG] setting property jgitver.all_tags with "4.2.4-rc3,4.2.4-rc2,4.2.3-RC1,4.2.3,4.2.2,4.2.1,4.2.0,4.1.2,4.1.1,4.1.0,4.0.1,4.0.0"
[DEBUG] setting property jgitver.all_annotated_tags with "4.2.3-RC1,4.2.3,4.2.2,4.2.1,4.2.0,4.1.2,4.1.1,4.1.0,4.0.1,4.0.0"
[DEBUG] setting property jgitver.all_lightweight_tags with "4.2.4-rc3,4.2.4-rc2"
[DEBUG] setting property jgitver.all_version_tags with "4.2.4-rc3,4.2.4-rc2,4.2.3,4.2.2,4.2.1,4.2.0,4.1.2,4.1.1,4.1.0,4.0.1,4.0.0"
[DEBUG] setting property jgitver.all_version_annotated_tags with "4.2.3,4.2.2,4.2.1,4.2.0,4.1.2,4.1.1,4.1.0,4.0.1,4.0.0"
[DEBUG] setting property jgitver.all_version_lightweight_tags with "4.2.4-rc3,4.2.4-rc2"
[DEBUG] setting property jgitver.next_major_version with "5.0.0"
[DEBUG] setting property jgitver.next_minor_version with "4.3.0"
[DEBUG] setting property jgitver.next_patch_version with "4.2.4"
[DEBUG] setting property jgitver.base_version with "4.2.4-rc3"
[DEBUG] setting property jgitver.commit_distance with ""
为什么它不使用标签,我怎样才能让它使用它?这里的目标是在标记一个分支之后,来自该分支的任何提交都使用该标记,即使 checkout 作为提交哈希也是如此。