mirror of
https://github.com/restic/restic.git
synced 2025-10-26 00:58:37 +00:00
doc: deprecate short_id and add some missing fields
This commit is contained in:
@@ -100,7 +100,7 @@ func (p *jsonLsPrinter) Snapshot(sn *restic.Snapshot) error {
|
||||
type lsSnapshot struct {
|
||||
*restic.Snapshot
|
||||
ID *restic.ID `json:"id"`
|
||||
ShortID string `json:"short_id"`
|
||||
ShortID string `json:"short_id"` // deprecated
|
||||
MessageType string `json:"message_type"` // "snapshot"
|
||||
StructType string `json:"struct_type"` // "snapshot", deprecated
|
||||
}
|
||||
|
||||
@@ -324,7 +324,7 @@ type Snapshot struct {
|
||||
*restic.Snapshot
|
||||
|
||||
ID *restic.ID `json:"id"`
|
||||
ShortID string `json:"short_id"`
|
||||
ShortID string `json:"short_id"` // deprecated
|
||||
}
|
||||
|
||||
// SnapshotGroup helps to print SnapshotGroups as JSON with their GroupReasons included.
|
||||
|
||||
Reference in New Issue
Block a user