summaryrefslogtreecommitdiffstats
path: root/man/repo-manifest.1
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2025-04-30 13:29:20 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2025-04-30 12:25:15 -0700
commit1acbc14c34f264e0158436dc3d0265d500848462 (patch)
tree789df4c5324fe0b485ef502f6aac8e9e20314943 /man/repo-manifest.1
parentc448ba9cc7c68b91a122e293402dcc96f511b655 (diff)
downloadgit-repo-1acbc14c34f264e0158436dc3d0265d500848462.tar.gz
manifest: generalize --json as --format=<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 <gavinmak@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'man/repo-manifest.1')
-rw-r--r--man/repo-manifest.18
1 files changed, 6 insertions, 2 deletions
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
30(only of use if the branch names for a sha1 manifest 30(only of use if the branch names for a sha1 manifest
31are sensitive) 31are sensitive)
32.TP 32.TP
33\fB\-\-json\fR 33\fB\-\-format\fR=\fI\,FORMAT\/\fR
34output manifest in JSON format (experimental) 34output format: xml, json (default: xml)
35.TP 35.TP
36\fB\-\-pretty\fR 36\fB\-\-pretty\fR
37format output for humans to read 37format output for humans to read
@@ -78,6 +78,10 @@ set to the ref we were on when the manifest was generated. The 'dest\-branch'
78attribute is set to indicate the remote ref to push changes to via 'repo 78attribute is set to indicate the remote ref to push changes to via 'repo
79upload'. 79upload'.
80.PP 80.PP
81Multiple output formats are supported via \fB\-\-format\fR. The default output is XML,
82and formats are generally "condensed". Use \fB\-\-pretty\fR for more human\-readable
83variations.
84.PP
81repo Manifest Format 85repo Manifest Format
82.PP 86.PP
83A repo manifest describes the structure of a repo client; that is the 87A repo manifest describes the structure of a repo client; that is the