MCPcopy
hub / github.com/go-git/go-git / isStandardHeader

Function isStandardHeader

plumbing/object/commit.go:348–355  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

346}
347
348func isStandardHeader(key string) bool {
349 switch key {
350 case "tree", "parent", "author", "committer",
351 headerencoding, headermergetag, headerpgp, headerpgp256:
352 return true
353 }
354 return false
355}
356
357func (c *Commit) encode(o plumbing.EncodedObject, includeSig bool) (err error) {
358 o.SetType(plumbing.CommitObject)

Callers 1

encodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…