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

Method ID

plumbing/object/commit.go:174–176  ·  view source on GitHub ↗

ID returns the object ID of the commit. The returned value will always match the current value of Commit.Hash. ID is present to fulfill the Object interface.

()

Source from the content-addressed store, hash-verified

172//
173// ID is present to fulfill the Object interface.
174func (c *Commit) ID() plumbing.Hash {
175 return c.Hash
176}
177
178// Type returns the type of object. It always returns plumbing.CommitObject.
179//

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected