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

Function checkAllCommitsSigned

rebase_test.go:294–311  ·  view source on GitHub ↗
(t *testing.T, entity *openpgp.Entity, repo *Repository)

Source from the content-addressed store, hash-verified

292}
293
294func checkAllCommitsSigned(t *testing.T, entity *openpgp.Entity, repo *Repository) {
295 head, err := headCommit(repo)
296 checkFatal(t, err)
297 defer head.Free()
298
299 parent := head
300
301 err = checkCommitSigned(t, entity, parent)
302 checkFatal(t, err)
303
304 for parent.ParentCount() != 0 {
305 parent = parent.Parent(0)
306 defer parent.Free()
307
308 err = checkCommitSigned(t, entity, parent)
309 checkFatal(t, err)
310 }
311}
312
313func checkCommitSigned(t *testing.T, entity *openpgp.Entity, commit *Commit) error {
314 t.Helper()

Callers 1

TestRebaseGpgSignedFunction · 0.85

Calls 6

headCommitFunction · 0.85
checkFatalFunction · 0.85
checkCommitSignedFunction · 0.85
ParentCountMethod · 0.80
ParentMethod · 0.80
FreeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…