mirror of
https://github.com/octoleo/restic.git
synced 2024-09-29 06:59:01 +00:00
f3fdc66b32
sort.Sort is not guaranteed to be stable. Go 1.19 has changed the sorting algorithm which resulted in changes of the sort order. When comparing snapshots with identical timestamp but different paths and tags lists, there is not meaningful order among them. So just keep their order stable.
108 lines
1.7 KiB
Plaintext
108 lines
1.7 KiB
Plaintext
{
|
|
"keep": [
|
|
{
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
{
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
{
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": [
|
|
"path1",
|
|
"path2"
|
|
],
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
{
|
|
"time": "2014-11-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
}
|
|
],
|
|
"reasons": [
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo, bar]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo, bar]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2015-10-22T10:20:30Z",
|
|
"tree": null,
|
|
"paths": [
|
|
"path1",
|
|
"path2"
|
|
],
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo, bar]"
|
|
],
|
|
"counters": {}
|
|
},
|
|
{
|
|
"snapshot": {
|
|
"time": "2014-11-15T10:20:30Z",
|
|
"tree": null,
|
|
"paths": null,
|
|
"tags": [
|
|
"foo",
|
|
"bar"
|
|
]
|
|
},
|
|
"matches": [
|
|
"has tags [foo, bar]"
|
|
],
|
|
"counters": {}
|
|
}
|
|
]
|
|
} |