summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorCarlos Fernandez <carlosfsanz@meta.com>2026-04-03 08:00:35 -0700
committergerrit-scoped@luci-project-accounts.iam.gserviceaccount.com <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2026-05-07 19:23:24 -0700
commit27d2232eb3cc4ec91fe6143b5d5c0d6f72861248 (patch)
treed47c012acef02f7e4b38e9d92cb954107d32af73 /man
parente3eadd37289f3c8bf0b71aeab50b86e130ead539 (diff)
downloadgit-repo-27d2232eb3cc4ec91fe6143b5d5c0d6f72861248.tar.gz
info: add --format and --include-summary/--include-projects options
Add --format={text,json} to produce machine-readable output, and boolean options to control which sections are displayed: --include-summary / --no-include-summary (default: on) --include-projects / --no-include-projects (default: on) The JSON output respects the include flags, so callers can request only the fields they need (e.g. `repo info --format=json --no-include-projects` for manifest metadata only). Change-Id: I9641bc4023b630d9c61c5170eb86e5f3b787236f Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/569203 Commit-Queue: Carlos Fernandez <carlosfsanz@meta.com> Reviewed-by: Mike Frysinger <vapier@google.com> Reviewed-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Carlos Fernandez <carlosfsanz@meta.com> Tested-by: Carlos Fernandez <carlosfsanz@meta.com>
Diffstat (limited to 'man')
-rw-r--r--man/repo-info.119
1 files changed, 17 insertions, 2 deletions
diff --git a/man/repo-info.1 b/man/repo-info.1
index 2cb25809e..b9941c7e9 100644
--- a/man/repo-info.1
+++ b/man/repo-info.1
@@ -1,10 +1,10 @@
1.\" DO NOT MODIFY THIS FILE! It was generated by help2man. 1.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
2.TH REPO "1" "July 2022" "repo info" "Repo Manual" 2.TH REPO "1" "May 2026" "repo info" "Repo Manual"
3.SH NAME 3.SH NAME
4repo \- repo info - manual page for repo info 4repo \- repo info - manual page for repo info
5.SH SYNOPSIS 5.SH SYNOPSIS
6.B repo 6.B repo
7\fI\,info \/\fR[\fI\,-dl\/\fR] [\fI\,-o \/\fR[\fI\,-c\/\fR]] [\fI\,<project>\/\fR...] 7\fI\,info \/\fR[\fI\,-dl\/\fR] [\fI\,-o \/\fR[\fI\,-c\/\fR]] [\fI\,--format=<format>\/\fR] [\fI\,<project>\/\fR...]
8.SH DESCRIPTION 8.SH DESCRIPTION
9Summary 9Summary
10.PP 10.PP
@@ -21,6 +21,18 @@ branches
21\fB\-o\fR, \fB\-\-overview\fR 21\fB\-o\fR, \fB\-\-overview\fR
22show overview of all local commits 22show overview of all local commits
23.TP 23.TP
24\fB\-\-include\-summary\fR
25include manifest summary (default: true)
26.TP
27\fB\-\-no\-include\-summary\fR
28exclude manifest summary
29.TP
30\fB\-\-include\-projects\fR
31include project details (default: true)
32.TP
33\fB\-\-no\-include\-projects\fR
34exclude project details
35.TP
24\fB\-c\fR, \fB\-\-current\-branch\fR 36\fB\-c\fR, \fB\-\-current\-branch\fR
25consider only checked out branches 37consider only checked out branches
26.TP 38.TP
@@ -29,6 +41,9 @@ consider all local branches
29.TP 41.TP
30\fB\-l\fR, \fB\-\-local\-only\fR 42\fB\-l\fR, \fB\-\-local\-only\fR
31disable all remote operations 43disable all remote operations
44.TP
45\fB\-\-format\fR=\fI\,FORMAT\/\fR
46output format: text, json (default: text)
32.SS Logging options: 47.SS Logging options:
33.TP 48.TP
34\fB\-v\fR, \fB\-\-verbose\fR 49\fB\-v\fR, \fB\-\-verbose\fR