git-preview @ main

static git web frontend but with images and html previews + code truncation

git: show lightweight annotated tags (#42)

The "TagObjects" function only returns annotated tags (the ones created
with "-a"). Git interpretes lightweight and annotated tags[^1]
differently, so we need to query all reference and check which one have
a tag object attached.

[^1]: https://git-scm.com/book/en/v2/Git-Basics-Tagging
Fri, 04 Oct 2024
1 files changed, 75 insertions(+), 23 deletions(-)
M git/git.go

@@ -19,7 +19,18 @@ r *git.Repository

h plumbing.Hash } -type TagList []*object.Tag +type TagList struct { + refs []*TagReference + r *git.Repository +} + +// TagReference is used to list both tag and non-annotated tags.

… preview truncated