Skip to content

Conversation

hb0730
Copy link
Contributor

@hb0730 hb0730 commented Jul 30, 2022

获取prev/last tag方式为多种

  • refname : 通过git tag --sort=-v:refname方式获取
  • creatordate 通过git tag --sort=-creatordate方式获取
  • describe : 通过git describe --abbrev=0 方式获取

link

  • describe 从提交中访问的最新标记

cmd

  • tagType 获取tag方式
    • 0 refname 默认方式
    • 1 creatordate 通过创建时间
    • 2 describe 提交记录最新标记

refer issues #31

不太常用go,有写不对,敬请指导

@inhere inhere self-assigned this Jul 30, 2022
@inhere inhere added the enhancement New feature or request label Jul 30, 2022
@inhere inhere self-requested a review July 30, 2022 08:07
@inhere inhere merged commit 5c6ffc4 into gookit:main Jul 30, 2022
@inhere
Copy link
Member

inhere commented Jul 30, 2022

👍 很好的PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants