Display respective snapshot date when using restic find

This commit is contained in:
Lorenz Bausch 2019-05-10 17:22:42 +02:00
parent 1c3812a6f6
commit d818b7618b
No known key found for this signature in database
GPG key ID: 4CC02F7A64E56801
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
Enhancement: Display snapshot date when using `restic find`
Added the respective snapshot date to the output of `restic find`.
https://github.com/restic/restic/issues/2072

View file

@ -160,7 +160,7 @@ func (s *statefulOutput) PrintPatternNormal(path string, node *restic.Node) {
Verbosef("\n")
}
s.oldsn = s.newsn
Verbosef("Found matching entries in snapshot %s\n", s.oldsn.ID().Str())
Verbosef("Found matching entries in snapshot %s from %s\n", s.oldsn.ID().Str(), s.oldsn.Time.Local().Format(TimeFormat))
}
Printf(formatNode(path, node, s.ListLong) + "\n")
}