From df8b1cba47fc29d045efceec8cbb43b9182acbbb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 26 Jul 2021 15:59:20 -0400 Subject: man: make output system independent The current help output might change based on the number of CPU cores available (since it reflects the dynamic --jobs logic). This is good for users running repo locally, but not good for shipping static man pages. Hook the help output to have it generate the same output all the time. Change-Id: I3098ceddc0ad914b0b8e3b25d660b5a264cb41ee Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/312882 Reviewed-by: Roger Shimizu Reviewed-by: Mike Frysinger Tested-by: Mike Frysinger --- man/repo-abandon.1 | 3 ++- man/repo-branches.1 | 3 ++- man/repo-checkout.1 | 3 ++- man/repo-diff.1 | 3 ++- man/repo-forall.1 | 3 ++- man/repo-grep.1 | 3 ++- man/repo-prune.1 | 3 ++- man/repo-smartsync.1 | 3 ++- man/repo-start.1 | 3 ++- man/repo-status.1 | 3 ++- man/repo-sync.1 | 3 ++- man/repo-upload.1 | 3 ++- 12 files changed, 24 insertions(+), 12 deletions(-) (limited to 'man') diff --git a/man/repo-abandon.1 b/man/repo-abandon.1 index fb3160c3e..b3c0422ff 100644 --- a/man/repo-abandon.1 +++ b/man/repo-abandon.1 @@ -20,7 +20,8 @@ It is equivalent to "git branch \fB\-D\fR ". show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .TP \fB\-\-all\fR delete all branches in all projects diff --git a/man/repo-branches.1 b/man/repo-branches.1 index 0080e467e..7fe0b02d7 100644 --- a/man/repo-branches.1 +++ b/man/repo-branches.1 @@ -46,7 +46,8 @@ is shown, then the branch appears in all projects. show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .SS Logging options: .TP \fB\-v\fR, \fB\-\-verbose\fR diff --git a/man/repo-checkout.1 b/man/repo-checkout.1 index 882b4bafe..6dd3e6caf 100644 --- a/man/repo-checkout.1 +++ b/man/repo-checkout.1 @@ -15,7 +15,8 @@ Checkout a branch for development show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .SS Logging options: .TP \fB\-v\fR, \fB\-\-verbose\fR diff --git a/man/repo-diff.1 b/man/repo-diff.1 index aff36d249..890f8d227 100644 --- a/man/repo-diff.1 +++ b/man/repo-diff.1 @@ -19,7 +19,8 @@ to the Unix 'patch' command. show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .TP \fB\-u\fR, \fB\-\-absolute\fR paths are relative to the repository root diff --git a/man/repo-forall.1 b/man/repo-forall.1 index 194f4d207..eb2ad57b1 100644 --- a/man/repo-forall.1 +++ b/man/repo-forall.1 @@ -17,7 +17,8 @@ repo forall \fB\-r\fR str1 [str2] ... \fB\-c\fR [...] show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .TP \fB\-r\fR, \fB\-\-regex\fR execute the command only on projects matching regex or diff --git a/man/repo-grep.1 b/man/repo-grep.1 index fb515a7be..be4105883 100644 --- a/man/repo-grep.1 +++ b/man/repo-grep.1 @@ -15,7 +15,8 @@ Print lines matching a pattern show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .SS Logging options: .TP \fB\-\-verbose\fR diff --git a/man/repo-prune.1 b/man/repo-prune.1 index 2479542c4..bd68a3731 100644 --- a/man/repo-prune.1 +++ b/man/repo-prune.1 @@ -15,7 +15,8 @@ Prune (delete) already merged topics show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .SS Logging options: .TP \fB\-v\fR, \fB\-\-verbose\fR diff --git a/man/repo-smartsync.1 b/man/repo-smartsync.1 index ad98b4796..5d9391177 100644 --- a/man/repo-smartsync.1 +++ b/man/repo-smartsync.1 @@ -15,7 +15,8 @@ Update working tree to the latest known good revision show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 1) +number of jobs to run in parallel (default: based on +number of CPU cores) .TP \fB\-\-jobs\-network\fR=\fI\,JOBS\/\fR number of network jobs to run in parallel (defaults to diff --git a/man/repo-start.1 b/man/repo-start.1 index cda3739fe..b00a31f46 100644 --- a/man/repo-start.1 +++ b/man/repo-start.1 @@ -15,7 +15,8 @@ Start a new branch for development show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .TP \fB\-\-all\fR begin branch in all projects diff --git a/man/repo-status.1 b/man/repo-status.1 index 6037ae1af..fbae2c5d9 100644 --- a/man/repo-status.1 +++ b/man/repo-status.1 @@ -15,7 +15,8 @@ Show the working tree status show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .TP \fB\-o\fR, \fB\-\-orphans\fR include objects in working directory outside of repo diff --git a/man/repo-sync.1 b/man/repo-sync.1 index 70f7c207d..c87c9701e 100644 --- a/man/repo-sync.1 +++ b/man/repo-sync.1 @@ -15,7 +15,8 @@ Update working tree to the latest revision show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 1) +number of jobs to run in parallel (default: based on +number of CPU cores) .TP \fB\-\-jobs\-network\fR=\fI\,JOBS\/\fR number of network jobs to run in parallel (defaults to diff --git a/man/repo-upload.1 b/man/repo-upload.1 index 6deed0472..36a0daca1 100644 --- a/man/repo-upload.1 +++ b/man/repo-upload.1 @@ -15,7 +15,8 @@ Upload changes for code review show this help message and exit .TP \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR -number of jobs to run in parallel (default: 4) +number of jobs to run in parallel (default: based on +number of CPU cores) .TP \fB\-t\fR send local branch name to Gerrit Code Review -- cgit v1.2.3