From e4871e3834397e34a83a8df62dafe5a0875555ae Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 26 Apr 2020 18:12:55 +0200 Subject: Option `always-new` --- pkg/config/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg') diff --git a/pkg/config/config.go b/pkg/config/config.go index b24a9e8..37dffcf 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -39,6 +39,7 @@ type Options struct { InclImages *bool `yaml:"include-images"` Disable *bool `yaml:"disable"` IgnHash *bool `yaml:"ignore-hash"` + AlwaysNew *bool `yaml:"always-new"` } func (opt *Options) mergeFrom(other Options) { @@ -51,6 +52,9 @@ func (opt *Options) mergeFrom(other Options) { if opt.IgnHash == nil { opt.IgnHash = other.IgnHash } + if opt.AlwaysNew == nil { + opt.AlwaysNew = other.AlwaysNew + } if opt.Disable == nil { opt.Disable = other.Disable } @@ -66,6 +70,7 @@ func init() { MinFreq: &one, InclImages: &fal, IgnHash: &fal, + AlwaysNew: &fal, Disable: &fal, } } -- cgit v1.2.3-70-g09d2