mirror of
https://github.com/restic/restic.git
synced 2026-08-25 15:03:17 +00:00
Major restructure, bundle blobs
This commit also breaks the repository format.
This commit is contained in:
@@ -19,6 +19,17 @@ const (
|
||||
Tree = 1
|
||||
)
|
||||
|
||||
func (t BlobType) String() string {
|
||||
switch t {
|
||||
case Data:
|
||||
return "data"
|
||||
case Tree:
|
||||
return "tree"
|
||||
}
|
||||
|
||||
return fmt.Sprintf("<BlobType %d>", t)
|
||||
}
|
||||
|
||||
func (t BlobType) MarshalJSON() ([]byte, error) {
|
||||
switch t {
|
||||
case Data:
|
||||
|
||||
Reference in New Issue
Block a user