From c8db980add4cdc9546a7e38dba264f6862662f15 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Wed, 20 Mar 2013 22:12:38 -0700 Subject: [PATCH] Image.Changes(): list all changes between an image and a rw directory --- graph/image.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/graph/image.go b/graph/image.go index ca03461530..4b10aa05d4 100644 --- a/graph/image.go +++ b/graph/image.go @@ -149,6 +149,14 @@ func (image *Image) Mount(root, rw string) error { return nil } +func (image *Image) Changes(rw string) ([]Change, error) { + layers, err := image.layers() + if err != nil { + return nil, err + } + return Changes(layers, rw) +} + func ValidateId(id string) error { if id == "" { return fmt.Errorf("Image id can't be empty")