MCPcopy Index your code
hub / github.com/go-git/go-git / reset

Method reset

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

Source from the content-addressed store, hash-verified

242}
243
244func (c *Commit) reset() {
245 storer := c.s
246 *c = Commit{
247 Encoding: defaultUtf8CommitMessageEncoding,
248 s: storer,
249 }
250}
251
252// Decode transforms a plumbing.EncodedObject into a Commit struct.
253func (c *Commit) Decode(o plumbing.EncodedObject) (err error) {

Callers 1

DecodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected