DiffContext returns a list of changes between this tree and the provided one Error will be returned if context expires. Provided context must be non nil. NOTE: Since version 5.1.0 the renames are correctly handled, the settings used are the recommended options DefaultDiffTreeOptions.
(ctx context.Context, to *Tree)
| 428 | // NOTE: Since version 5.1.0 the renames are correctly handled, the settings |
| 429 | // used are the recommended options DefaultDiffTreeOptions. |
| 430 | func (t *Tree) DiffContext(ctx context.Context, to *Tree) (Changes, error) { |
| 431 | return DiffTreeWithOptions(ctx, t, to, DefaultDiffTreeOptions) |
| 432 | } |
| 433 | |
| 434 | // Patch returns a slice of Patch objects with all the changes between trees |
| 435 | // in chunks. This representation can be used to create several diff outputs. |