(signature object.Signature)
| 170 | } |
| 171 | |
| 172 | func (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 | |
| 180 | type gpgSigner struct { |
| 181 | key *openpgp.Entity |