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)
| 173 | // NOTE: Since version 5.1.0 the renames are correctly handled, the settings |
| 174 | // used are the recommended options DefaultDiffTreeOptions. |
| 175 | func (c *Commit) Patch(to *Commit) (*Patch, error) { |
| 176 | return c.PatchContext(context.Background(), to) |
| 177 | } |
| 178 | |
| 179 | // Parents return a CommitIter to the parent Commits. |
| 180 | func (c *Commit) Parents() CommitIter { |
nothing calls this directly
no test coverage detected