Merge pull request #1149 from tonistiigi/public-differ

differ: make basediff constructor public
This commit is contained in:
Michael Crosby 2017-07-10 15:30:56 -07:00 committed by GitHub
commit 3707703a69

View File

@ -28,7 +28,7 @@ func init() {
if err != nil {
return nil, err
}
return newBaseDiff(c.(content.Store))
return NewBaseDiff(c.(content.Store))
},
})
}
@ -41,7 +41,7 @@ var _ plugin.Differ = &BaseDiff{}
var emptyDesc = ocispec.Descriptor{}
func newBaseDiff(store content.Store) (*BaseDiff, error) {
func NewBaseDiff(store content.Store) (*BaseDiff, error) {
return &BaseDiff{
store: store,
}, nil