MCPcopy Index your code
hub / github.com/antonmedv/gitmal / Message

Method Message

pkg/gitdiff/patch_header.go:59–69  ·  view source on GitHub ↗

Message returns the commit message for the header. The message consists of the title and the body separated by an empty line.

()

Source from the content-addressed store, hash-verified

57// Message returns the commit message for the header. The message consists of
58// the title and the body separated by an empty line.
59func (h *PatchHeader) Message() string {
60 var msg strings.Builder
61 if h != nil {
62 msg.WriteString(h.Title)
63 if h.Body != "" {
64 msg.WriteString("\n\n")
65 msg.WriteString(h.Body)
66 }
67 }
68 return msg.String()
69}
70
71// ParsePatchDate parses a patch date string. It returns the parsed time or an
72// error if s has an unknown format. ParsePatchDate supports the iso, rfc,

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected