mirror of
https://github.com/kopia/kopia.git
synced 2026-04-27 09:27:54 -04:00
Add diff.compareEntry helper to compare attribute entries
- Use it to compare the entry attributes for all entry types. Allows comparing differences in file attributes among the contents of two directories. This is useful for verifying restored contents in end-to-end tests. - Print message about modified entries only when both entries are files and they are being compared.
This commit is contained in:
committed by
Jarek Kowalski
parent
5c58b306a4
commit
d3f324f59b
@@ -38,7 +38,7 @@ func runDiffCommand(ctx context.Context, rep *repo.Repository) error {
|
||||
return errors.New("arguments do diff must both be directories or both non-directories")
|
||||
}
|
||||
|
||||
d, err := diff.NewComparer(rep, os.Stdout)
|
||||
d, err := diff.NewComparer(os.Stdout)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user