From 1acbc14c34f264e0158436dc3d0265d500848462 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 30 Apr 2025 13:29:20 -0400 Subject: manifest: generalize --json as --format= This will make it easier to add more formats without exploding the common --xxx space and checking a large set of boolean flags. Also fill out the test coverage while we're here. Bug: b/412725063 Change-Id: I754013dc6cb3445f8a0979cefec599d55dafdcff Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/471941 Reviewed-by: Gavin Mak Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- man/repo-manifest.1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'man/repo-manifest.1') diff --git a/man/repo-manifest.1 b/man/repo-manifest.1 index f2f7290d..74e09145 100644 --- a/man/repo-manifest.1 +++ b/man/repo-manifest.1 @@ -30,8 +30,8 @@ if in \fB\-r\fR mode, do not write the dest\-branch field (only of use if the branch names for a sha1 manifest are sensitive) .TP -\fB\-\-json\fR -output manifest in JSON format (experimental) +\fB\-\-format\fR=\fI\,FORMAT\/\fR +output format: xml, json (default: xml) .TP \fB\-\-pretty\fR format output for humans to read @@ -78,6 +78,10 @@ set to the ref we were on when the manifest was generated. The 'dest\-branch' attribute is set to indicate the remote ref to push changes to via 'repo upload'. .PP +Multiple output formats are supported via \fB\-\-format\fR. The default output is XML, +and formats are generally "condensed". Use \fB\-\-pretty\fR for more human\-readable +variations. +.PP repo Manifest Format .PP A repo manifest describes the structure of a repo client; that is the -- cgit v1.2.3-54-g00ecf