MCPcopy Create free account
hub / github.com/go-git/go-git / encodeTimeAndTimeZone

Method encodeTimeAndTimeZone

plumbing/object/object.go:156–163  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

154}
155
156func (s *Signature) encodeTimeAndTimeZone(w io.Writer) error {
157 u := s.When.Unix()
158 if u < 0 {
159 u = 0
160 }
161 _, err := fmt.Fprintf(w, "%d %s", u, s.When.Format("-0700"))
162 return err
163}
164
165func (s *Signature) String() string {
166 return fmt.Sprintf("%s <%s>", s.Name, s.Email)

Callers 1

EncodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected