MCPcopy Create free account
hub / github.com/go-git/go-git / String

Method String

plumbing/object/commit.go:401–407  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399}
400
401func (c *Commit) String() string {
402 return fmt.Sprintf(
403 "%s %s\nAuthor: %s\nDate: %s\n\n%s\n",
404 plumbing.CommitObject, c.Hash, c.Author.String(),
405 c.Author.When.Format(DateFormat), indent(c.Message),
406 )
407}
408
409// Verify performs PGP verification of the commit with a provided armored
410// keyring and returns openpgp.Entity associated with verifying key on success.

Callers

nothing calls this directly

Calls 2

indentFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected