MCPcopy Create free account
hub / github.com/Comfy-Org/registry-backend / SetCommitHash

Method SetCommitHash

ent/gitcommit_create.go:565–569  ·  view source on GitHub ↗

SetCommitHash sets the "commit_hash" field.

(v string)

Source from the content-addressed store, hash-verified

563
564// SetCommitHash sets the "commit_hash" field.
565func (u *GitCommitUpsertOne) SetCommitHash(v string) *GitCommitUpsertOne {
566 return u.Update(func(s *GitCommitUpsert) {
567 s.SetCommitHash(v)
568 })
569}
570
571// UpdateCommitHash sets the "commit_hash" field to the value that was provided on create.
572func (u *GitCommitUpsertOne) UpdateCommitHash() *GitCommitUpsertOne {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected