From 9151eec24eb083a9f3f6389f7a497bb8b2d437e5 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sun, 19 Aug 2018 09:14:12 -0600 Subject: [PATCH] Add changelog entry --- changelog/unreleased/{1941 => pull-1941} | 0 changelog/unreleased/pull-1962 | 13 +++++++++++++ 2 files changed, 13 insertions(+) rename changelog/unreleased/{1941 => pull-1941} (100%) create mode 100644 changelog/unreleased/pull-1962 diff --git a/changelog/unreleased/1941 b/changelog/unreleased/pull-1941 similarity index 100% rename from changelog/unreleased/1941 rename to changelog/unreleased/pull-1941 diff --git a/changelog/unreleased/pull-1962 b/changelog/unreleased/pull-1962 new file mode 100644 index 000000000..e3fde4c48 --- /dev/null +++ b/changelog/unreleased/pull-1962 @@ -0,0 +1,13 @@ +Enhancement: Stream JSON output for ls command + +The `ls` command now supports JSON output with the global `--json` +flag, and this change streams out JSON messages one object at a time +rather than en entire array buffered in memory before encoding. The +advantage is it allows large listings to be handled efficiently. + +Two message types are printed: snapshots and nodes. A snapshot +object will precede node objects which belong to that snapshot. +The `struct_type` field can be used to determine which kind of +message an object is. + +https://github.com/restic/restic/pull/1962