MCPcopy
hub / github.com/syncthing/syncthing / setName

Method setName

script/authors.go:309–317  ·  view source on GitHub ↗
(email, name string)

Source from the content-addressed store, hash-verified

307}
308
309func (a *authorSet) setName(email, name string) {
310 idx, ok := a.emails[email]
311 if !ok {
312 a.emails[email] = len(a.authors)
313 a.authors = append(a.authors, author{name: name, emails: []string{email}})
314 } else if a.authors[idx].name == "" {
315 a.authors[idx].name = name
316 }
317}
318
319func (a *authorSet) addCommit(email, hash string) {
320 ss, ok := a.commits[email]

Callers 1

addAuthorsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected