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

Method SetNillableCommitHash

ent/gitcommit_update.go:47–52  ·  view source on GitHub ↗

SetNillableCommitHash sets the "commit_hash" field if the given value is not nil.

(s *string)

Source from the content-addressed store, hash-verified

45
46// SetNillableCommitHash sets the "commit_hash" field if the given value is not nil.
47func (gcu *GitCommitUpdate) SetNillableCommitHash(s *string) *GitCommitUpdate {
48 if s != nil {
49 gcu.SetCommitHash(*s)
50 }
51 return gcu
52}
53
54// SetBranchName sets the "branch_name" field.
55func (gcu *GitCommitUpdate) SetBranchName(s string) *GitCommitUpdate {

Callers

nothing calls this directly

Calls 1

SetCommitHashMethod · 0.95

Tested by

no test coverage detected