Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Meier <r.meier@siemens.com>2019-11-05 00:00:57 +0300
committerJohn Cai <jcai@gitlab.com>2019-11-05 00:00:57 +0300
commitf5e796192cf2d6d0b3ff3b4f5825ddbb0ddde1de (patch)
tree4598b5fbb5624dbf32873e0c30f49fe9c878c87a /internal/git/log/tag.go
parente9f9183a3228241d3b4ab352425d3d68890fcf02 (diff)
Add tagger and timezone
Diffstat (limited to 'internal/git/log/tag.go')
-rw-r--r--internal/git/log/tag.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/git/log/tag.go b/internal/git/log/tag.go
index fca94292d..52c340673 100644
--- a/internal/git/log/tag.go
+++ b/internal/git/log/tag.go
@@ -44,6 +44,8 @@ func GetTagCatfile(c *catfile.Batch, tagID, tagName string) (*gitalypb.Tag, erro
type tagHeader struct {
oid string
tagType string
+ tag string
+ tagger string
}
func splitRawTag(r io.Reader) (*tagHeader, []byte, error) {
@@ -75,6 +77,10 @@ func splitRawTag(r io.Reader) (*tagHeader, []byte, error) {
header.oid = value
case "type":
header.tagType = value
+ case "tag":
+ header.tag = value
+ case "tagger":
+ header.tagger = value
}
}
@@ -108,6 +114,8 @@ func buildAnnotatedTag(b *catfile.Batch, tagID, name string, header *tagHeader,
}
}
+ tag.Tagger = parseCommitAuthor(header.tagger)
+
return tag, nil
}