Rename snapshot.Content -> snapshot.Tree

This commit is contained in:
Alexander Neumann
2014-12-07 14:14:50 +01:00
parent 73be0d5b18
commit 202984a93f
6 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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 {
+1 -1
View File
@@ -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)
}