RawHeader gets the full raw text of the commit header.
()
| 55 | |
| 56 | // RawHeader gets the full raw text of the commit header. |
| 57 | func (c *Commit) RawHeader() string { |
| 58 | ret := C.GoString(C.git_commit_raw_header(c.cast_ptr)) |
| 59 | runtime.KeepAlive(c) |
| 60 | return ret |
| 61 | } |
| 62 | |
| 63 | // ContentToSign returns the content that will be passed to a signing function for this commit |
| 64 | func (c *Commit) ContentToSign() string { |