MCPcopy Create free account
hub / github.com/libgit2/git2go / createTag

Function createTag

tag_test.go:193–205  ·  view source on GitHub ↗
(t *testing.T, repo *Repository, commit *Commit, name, message string)

Source from the content-addressed store, hash-verified

191}
192
193func createTag(t *testing.T, repo *Repository, commit *Commit, name, message string) *Oid {
194 loc, err := time.LoadLocation("Europe/Bucharest")
195 checkFatal(t, err)
196 sig := &Signature{
197 Name: "Rand Om Hacker",
198 Email: "random@hacker.com",
199 When: time.Date(2013, 03, 06, 14, 30, 0, 0, loc),
200 }
201
202 tagId, err := repo.Tags.Create(name, commit, sig, message)
203 checkFatal(t, err)
204 return tagId
205}

Callers 3

TestListTagsFunction · 0.85
TestListTagsWithMatchFunction · 0.85
TestTagForeachFunction · 0.85

Calls 2

checkFatalFunction · 0.85
CreateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…