Patch returns the Patch between the actual commit and the provided one. NOTE: Since version 5.1.0 the renames are correctly handled, the settings used are the recommended options DefaultDiffTreeOptions.
(to *Commit)
| 119 | // NOTE: Since version 5.1.0 the renames are correctly handled, the settings |
| 120 | // used are the recommended options DefaultDiffTreeOptions. |
| 121 | func (c *Commit) Patch(to *Commit) (*Patch, error) { |
| 122 | return c.PatchContext(context.Background(), to) |
| 123 | } |
| 124 | |
| 125 | // Parents return a CommitIter to the parent Commits. |
| 126 | func (c *Commit) Parents() CommitIter { |
nothing calls this directly
no test coverage detected