diff: rename differ to comparer

Remove combined interface and split implementations.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-12-19 15:47:48 -08:00
parent b580441f91
commit b763777288
12 changed files with 217 additions and 151 deletions

View File

@@ -129,7 +129,7 @@ var diffCommand = cli.Command{
}
if idB == "" {
desc, err = rootfs.Diff(ctx, idA, snapshotter, client.DiffService(), opts...)
desc, err = rootfs.CreateDiff(ctx, idA, snapshotter, client.DiffService(), opts...)
if err != nil {
return err
}
@@ -145,7 +145,7 @@ var diffCommand = cli.Command{
if err != nil {
return err
}
desc, err = ds.DiffMounts(ctx, a, b, opts...)
desc, err = ds.Compare(ctx, a, b, opts...)
if err != nil {
return err
}