MCPcopy Create free account
hub / github.com/git-bug/git-bug / ReadTimestamp

Method ReadTimestamp

repository/config.go:125–134  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

123}
124
125func (m *mergedConfig) ReadTimestamp(key string) (time.Time, error) {
126 val, err := m.local.ReadTimestamp(key)
127 if err == nil {
128 return val, nil
129 }
130 if !errors.Is(err, ErrNoConfigEntry) && !errors.Is(err, ErrMultipleConfigEntry) {
131 return time.Time{}, err
132 }
133 return m.global.ReadTimestamp(key)
134}
135
136var _ ConfigWrite = &configPanicWriter{}
137

Callers

nothing calls this directly

Calls 1

ReadTimestampMethod · 0.65

Tested by

no test coverage detected