From 524ce01423af849cfec7d1961d778f9db43b4fbd Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 30 Jan 2017 10:48:50 +0100 Subject: [PATCH] Remove 'cat tree' command --- src/cmds/restic/cmd_cat.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/cmds/restic/cmd_cat.go b/src/cmds/restic/cmd_cat.go index 8b4015306..932d77d5d 100644 --- a/src/cmds/restic/cmd_cat.go +++ b/src/cmds/restic/cmd_cat.go @@ -9,7 +9,6 @@ import ( "restic" "restic/backend" - "restic/debug" "restic/errors" "restic/repository" ) @@ -184,23 +183,6 @@ func runCat(gopts GlobalOptions, args []string) error { return errors.Fatal("blob not found") - case "tree": - debug.Log("cat tree %v", id.Str()) - tree, err := repo.LoadTree(id) - if err != nil { - debug.Log("unable to load tree %v: %v", id.Str(), err) - return err - } - - buf, err := json.MarshalIndent(&tree, "", " ") - if err != nil { - debug.Log("error json.MarshalIndent(): %v", err) - return err - } - - _, err = os.Stdout.Write(append(buf, '\n')) - return nil - default: return errors.Fatal("invalid type") }