diff options
author | Mike Frysinger <vapier@google.com> | 2025-04-30 13:29:20 -0400 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-04-30 12:25:15 -0700 |
commit | 1acbc14c34f264e0158436dc3d0265d500848462 (patch) | |
tree | 789df4c5324fe0b485ef502f6aac8e9e20314943 /man | |
parent | c448ba9cc7c68b91a122e293402dcc96f511b655 (diff) | |
download | git-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')
-rw-r--r-- | man/repo-manifest.1 | 8 |
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 |
31 | are sensitive) | 31 | are sensitive) |
32 | .TP | 32 | .TP |
33 | \fB\-\-json\fR | 33 | \fB\-\-format\fR=\fI\,FORMAT\/\fR |
34 | output manifest in JSON format (experimental) | 34 | output format: xml, json (default: xml) |
35 | .TP | 35 | .TP |
36 | \fB\-\-pretty\fR | 36 | \fB\-\-pretty\fR |
37 | format output for humans to read | 37 | 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' | |||
78 | attribute is set to indicate the remote ref to push changes to via 'repo | 78 | attribute is set to indicate the remote ref to push changes to via 'repo |
79 | upload'. | 79 | upload'. |
80 | .PP | 80 | .PP |
81 | Multiple output formats are supported via \fB\-\-format\fR. The default output is XML, | ||
82 | and formats are generally "condensed". Use \fB\-\-pretty\fR for more human\-readable | ||
83 | variations. | ||
84 | .PP | ||
81 | repo Manifest Format | 85 | repo Manifest Format |
82 | .PP | 86 | .PP |
83 | A repo manifest describes the structure of a repo client; that is the | 87 | A repo manifest describes the structure of a repo client; that is the |