mirror of
https://github.com/restic/restic.git
synced 2025-08-24 16:27:30 +00:00
Major restructure, bundle blobs
This commit also breaks the repository format.
This commit is contained in:
11
pack/pack.go
11
pack/pack.go
@@ -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