Debian Codegraph @

changelog/0.9.3_2018-10-13/pull-1962

raw
1 Enhancement: Stream JSON output for ls command
2
3 The `ls` command now supports JSON output with the global `--json`
4 flag, and this change streams out JSON messages one object at a time
5 rather than en entire array buffered in memory before encoding. The
6 advantage is it allows large listings to be handled efficiently.
7
8 Two message types are printed: snapshots and nodes. A snapshot
9 object will precede node objects which belong to that snapshot.
10 The `struct_type` field can be used to determine which kind of
11 message an object is.
12
13 https://github.com/restic/restic/pull/1962