Message returns the commit message for the header. The message consists of the title and the body separated by an empty line.
()
| 57 | // Message returns the commit message for the header. The message consists of |
| 58 | // the title and the body separated by an empty line. |
| 59 | func (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, |
nothing calls this directly
no test coverage detected