mirror of
https://github.com/restic/restic.git
synced 2026-08-04 21:22:16 +00:00
Rename snapshot.Content -> snapshot.Tree
This commit is contained in:
@@ -81,7 +81,7 @@ func fsck_snapshot(be backend.Server, key *restic.Key, id backend.ID) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if sn.Content == nil {
|
||||
if sn.Tree == nil {
|
||||
return fmt.Errorf("snapshot %v has no content", sn.ID)
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@ func fsck_snapshot(be backend.Server, key *restic.Key, id backend.ID) error {
|
||||
return fmt.Errorf("snapshot %v has no map", sn.ID)
|
||||
}
|
||||
|
||||
return fsckTree(ch, sn.Content)
|
||||
return fsckTree(ch, sn.Tree)
|
||||
}
|
||||
|
||||
func commandFsck(be backend.Server, key *restic.Key, args []string) error {
|
||||
|
||||
@@ -74,5 +74,5 @@ func commandLs(be backend.Server, key *restic.Key, args []string) error {
|
||||
|
||||
fmt.Printf("snapshot of %s at %s:\n", sn.Dir, sn.Time)
|
||||
|
||||
return print_tree("", ch, sn.Content)
|
||||
return print_tree("", ch, sn.Tree)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user