MCPcopy
hub / github.com/go-git/go-git / sanitize

Method sanitize

worktree_commit.go:172–178  ·  view source on GitHub ↗
(signature object.Signature)

Source from the content-addressed store, hash-verified

170}
171
172func (w *Worktree) sanitize(signature object.Signature) object.Signature {
173 return object.Signature{
174 Name: invalidCharactersRe.ReplaceAllString(signature.Name, ""),
175 Email: invalidCharactersRe.ReplaceAllString(signature.Email, ""),
176 When: signature.When,
177 }
178}
179
180type gpgSigner struct {
181 key *openpgp.Entity

Callers 1

buildCommitObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected