mirror of
https://github.com/restic/restic.git
synced 2025-08-23 16:17:53 +00:00
deduplicate string formatting of snapshot metadata
This removes the spurious ")" bracket at the end and normalizes the metadata format used by the `ls` command.
This commit is contained in:
@@ -96,7 +96,7 @@ func ForAllSnapshots(ctx context.Context, be Lister, loader LoaderUnpacked, excl
|
||||
}
|
||||
|
||||
func (sn Snapshot) String() string {
|
||||
return fmt.Sprintf("<Snapshot %s of %v at %s by %s@%s>",
|
||||
return fmt.Sprintf("snapshot %s of %v at %s by %s@%s",
|
||||
sn.id.Str(), sn.Paths, sn.Time, sn.Username, sn.Hostname)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user