summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/config/config.go5
1 files changed, 5 insertions, 0 deletions
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,
}
}