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

Method SetNillableTimestamp

ent/gitcommit_update.go:137–142  ·  view source on GitHub ↗

SetNillableTimestamp sets the "timestamp" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

135
136// SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
137func (gcu *GitCommitUpdate) SetNillableTimestamp(t *time.Time) *GitCommitUpdate {
138 if t != nil {
139 gcu.SetTimestamp(*t)
140 }
141 return gcu
142}
143
144// ClearTimestamp clears the value of the "timestamp" field.
145func (gcu *GitCommitUpdate) ClearTimestamp() *GitCommitUpdate {

Callers

nothing calls this directly

Calls 1

SetTimestampMethod · 0.95

Tested by

no test coverage detected