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

Method Id

note.go:172–176  ·  view source on GitHub ↗

Id returns the note object's id

()

Source from the content-addressed store, hash-verified

170
171// Id returns the note object's id
172func (n *Note) Id() *Oid {
173 ptr := C.git_note_id(n.ptr)
174 runtime.KeepAlive(n)
175 return newOidFromC(ptr)
176}
177
178// Committer returns the signature of the note committer
179func (n *Note) Committer() *Signature {

Callers 14

TestCreateNoteFunction · 0.45
TestNoteIteratorFunction · 0.45
TestRemoveNoteFunction · 0.45
createTestNoteFunction · 0.45
checkoutFunction · 0.45
commitSomethingFunction · 0.45
checkObjectFunction · 0.45
seedTestRepoOptFunction · 0.45
TestIndexReadTreeFunction · 0.45
TestMempackFunction · 0.45
TestMergeWithSelfFunction · 0.45

Calls 1

newOidFromCFunction · 0.85

Tested by 13

TestCreateNoteFunction · 0.36
TestNoteIteratorFunction · 0.36
TestRemoveNoteFunction · 0.36
createTestNoteFunction · 0.36
checkoutFunction · 0.36
commitSomethingFunction · 0.36
checkObjectFunction · 0.36
seedTestRepoOptFunction · 0.36
TestIndexReadTreeFunction · 0.36
TestMempackFunction · 0.36
TestMergeWithSelfFunction · 0.36