| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 1 | .\" DO NOT MODIFY THIS FILE! It was generated by help2man. |
| Mike Frysinger | 87f52f3 | 2024-06-30 20:12:07 -0400 | [diff] [blame] | 2 | .TH REPO "1" "June 2024" "repo upload" "Repo Manual" |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 3 | .SH NAME |
| 4 | repo \- repo upload - manual page for repo upload |
| 5 | .SH SYNOPSIS |
| 6 | .B repo |
| 7 | \fI\,upload \/\fR[\fI\,--re --cc\/\fR] [\fI\,<project>\/\fR]... |
| 8 | .SH DESCRIPTION |
| 9 | Summary |
| 10 | .PP |
| 11 | Upload changes for code review |
| 12 | .SH OPTIONS |
| 13 | .TP |
| 14 | \fB\-h\fR, \fB\-\-help\fR |
| 15 | show this help message and exit |
| 16 | .TP |
| 17 | \fB\-j\fR JOBS, \fB\-\-jobs\fR=\fI\,JOBS\/\fR |
| Mike Frysinger | df8b1cb | 2021-07-26 15:59:20 -0400 | [diff] [blame] | 18 | number of jobs to run in parallel (default: based on |
| 19 | number of CPU cores) |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 20 | .TP |
| Mike Frysinger | 87f52f3 | 2024-06-30 20:12:07 -0400 | [diff] [blame] | 21 | \fB\-t\fR, \fB\-\-topic\-branch\fR |
| 22 | set the topic to the local branch name |
| 23 | .TP |
| 24 | \fB\-\-topic\fR=\fI\,TOPIC\/\fR |
| 25 | set topic for the change |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 26 | .TP |
| 27 | \fB\-\-hashtag\fR=\fI\,HASHTAGS\/\fR, \fB\-\-ht\fR=\fI\,HASHTAGS\/\fR |
| 28 | add hashtags (comma delimited) to the review |
| 29 | .TP |
| 30 | \fB\-\-hashtag\-branch\fR, \fB\-\-htb\fR |
| 31 | add local branch name as a hashtag |
| 32 | .TP |
| 33 | \fB\-l\fR LABELS, \fB\-\-label\fR=\fI\,LABELS\/\fR |
| 34 | add a label when uploading |
| 35 | .TP |
| Mike Frysinger | cbd78a9 | 2024-04-11 08:32:40 -0400 | [diff] [blame] | 36 | \fB\-\-pd\fR=\fI\,PATCHSET_DESCRIPTION\/\fR, \fB\-\-patchset\-description\fR=\fI\,PATCHSET_DESCRIPTION\/\fR |
| 37 | description for patchset |
| 38 | .TP |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 39 | \fB\-\-re\fR=\fI\,REVIEWERS\/\fR, \fB\-\-reviewers\fR=\fI\,REVIEWERS\/\fR |
| 40 | request reviews from these people |
| 41 | .TP |
| 42 | \fB\-\-cc\fR=\fI\,CC\/\fR |
| 43 | also send email to these email addresses |
| 44 | .TP |
| 45 | \fB\-\-br\fR=\fI\,BRANCH\/\fR, \fB\-\-branch\fR=\fI\,BRANCH\/\fR |
| 46 | (local) branch to upload |
| 47 | .TP |
| 48 | \fB\-c\fR, \fB\-\-current\-branch\fR |
| 49 | upload current git branch |
| 50 | .TP |
| 51 | \fB\-\-no\-current\-branch\fR |
| 52 | upload all git branches |
| 53 | .TP |
| 54 | \fB\-\-ne\fR, \fB\-\-no\-emails\fR |
| 55 | do not send e\-mails on upload |
| 56 | .TP |
| 57 | \fB\-p\fR, \fB\-\-private\fR |
| 58 | upload as a private change (deprecated; use \fB\-\-wip\fR) |
| 59 | .TP |
| 60 | \fB\-w\fR, \fB\-\-wip\fR |
| 61 | upload as a work\-in\-progress change |
| 62 | .TP |
| Mike Frysinger | 7fa8eed | 2022-08-04 04:27:17 -0400 | [diff] [blame] | 63 | \fB\-r\fR, \fB\-\-ready\fR |
| 64 | mark change as ready (clears work\-in\-progress setting) |
| 65 | .TP |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 66 | \fB\-o\fR PUSH_OPTIONS, \fB\-\-push\-option\fR=\fI\,PUSH_OPTIONS\/\fR |
| 67 | additional push options to transmit |
| 68 | .TP |
| 69 | \fB\-D\fR BRANCH, \fB\-\-destination\fR=\fI\,BRANCH\/\fR, \fB\-\-dest\fR=\fI\,BRANCH\/\fR |
| 70 | submit for review on this target branch |
| 71 | .TP |
| 72 | \fB\-n\fR, \fB\-\-dry\-run\fR |
| 73 | do everything except actually upload the CL |
| 74 | .TP |
| 75 | \fB\-y\fR, \fB\-\-yes\fR |
| 76 | answer yes to all safe prompts |
| 77 | .TP |
| Mike Frysinger | 7fa8eed | 2022-08-04 04:27:17 -0400 | [diff] [blame] | 78 | \fB\-\-ignore\-untracked\-files\fR |
| 79 | ignore untracked files in the working copy |
| 80 | .TP |
| 81 | \fB\-\-no\-ignore\-untracked\-files\fR |
| 82 | always ask about untracked files in the working copy |
| 83 | .TP |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 84 | \fB\-\-no\-cert\-checks\fR |
| 85 | disable verifying ssl certs (unsafe) |
| 86 | .SS Logging options: |
| 87 | .TP |
| 88 | \fB\-v\fR, \fB\-\-verbose\fR |
| 89 | show all output |
| 90 | .TP |
| 91 | \fB\-q\fR, \fB\-\-quiet\fR |
| 92 | only show errors |
| Mike Frysinger | d47d9ff | 2022-07-10 05:15:19 -0400 | [diff] [blame] | 93 | .SS Multi\-manifest options: |
| 94 | .TP |
| 95 | \fB\-\-outer\-manifest\fR |
| 96 | operate starting at the outermost manifest |
| 97 | .TP |
| 98 | \fB\-\-no\-outer\-manifest\fR |
| 99 | do not operate on outer manifests |
| 100 | .TP |
| 101 | \fB\-\-this\-manifest\-only\fR |
| 102 | only operate on this (sub)manifest |
| 103 | .TP |
| 104 | \fB\-\-no\-this\-manifest\-only\fR, \fB\-\-all\-manifests\fR |
| 105 | operate on this manifest and its submanifests |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 106 | .SS pre\-upload hooks: |
| 107 | .TP |
| 108 | \fB\-\-no\-verify\fR |
| 109 | Do not run the pre\-upload hook. |
| 110 | .TP |
| 111 | \fB\-\-verify\fR |
| 112 | Run the pre\-upload hook without prompting. |
| 113 | .TP |
| 114 | \fB\-\-ignore\-hooks\fR |
| 115 | Do not abort if pre\-upload hooks fail. |
| 116 | .PP |
| 117 | Run `repo help upload` to view the detailed manual. |
| 118 | .SH DETAILS |
| 119 | .PP |
| 120 | The 'repo upload' command is used to send changes to the Gerrit Code Review |
| 121 | system. It searches for topic branches in local projects that have not yet been |
| 122 | published for review. If multiple topic branches are found, 'repo upload' opens |
| 123 | an editor to allow the user to select which branches to upload. |
| 124 | .PP |
| 125 | \&'repo upload' searches for uploadable changes in all projects listed at the |
| 126 | command line. Projects can be specified either by name, or by a relative or |
| 127 | absolute path to the project's local directory. If no projects are specified, |
| 128 | \&'repo upload' will search for uploadable changes in all projects listed in the |
| 129 | manifest. |
| 130 | .PP |
| 131 | If the \fB\-\-reviewers\fR or \fB\-\-cc\fR options are passed, those emails are added to the |
| 132 | respective list of users, and emails are sent to any new users. Users passed as |
| 133 | \fB\-\-reviewers\fR must already be registered with the code review system, or the |
| 134 | upload will fail. |
| 135 | .PP |
| Mike Frysinger | 7fa8eed | 2022-08-04 04:27:17 -0400 | [diff] [blame] | 136 | While most normal Gerrit options have dedicated command line options, direct |
| 137 | access to the Gerit options is available via \fB\-\-push\-options\fR. This is useful when |
| 138 | Gerrit has newer functionality that repo upload doesn't yet support, or doesn't |
| 139 | have plans to support. See the Push Options documentation for more details: |
| 140 | https://gerrit\-review.googlesource.com/Documentation/user\-upload.html#push_options |
| 141 | .PP |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 142 | Configuration |
| 143 | .PP |
| 144 | review.URL.autoupload: |
| 145 | .PP |
| 146 | To disable the "Upload ... (y/N)?" prompt, you can set a per\-project or global |
| 147 | Git configuration option. If review.URL.autoupload is set to "true" then repo |
| 148 | will assume you always answer "y" at the prompt, and will not prompt you |
| 149 | further. If it is set to "false" then repo will assume you always answer "n", |
| 150 | and will abort. |
| 151 | .PP |
| 152 | review.URL.autoreviewer: |
| 153 | .PP |
| 154 | To automatically append a user or mailing list to reviews, you can set a |
| 155 | per\-project or global Git option to do so. |
| 156 | .PP |
| 157 | review.URL.autocopy: |
| 158 | .PP |
| 159 | To automatically copy a user or mailing list to all uploaded reviews, you can |
| 160 | set a per\-project or global Git option to do so. Specifically, |
| 161 | review.URL.autocopy can be set to a comma separated list of reviewers who you |
| 162 | always want copied on all uploads with a non\-empty \fB\-\-re\fR argument. |
| 163 | .PP |
| 164 | review.URL.username: |
| 165 | .PP |
| 166 | Override the username used to connect to Gerrit Code Review. By default the |
| 167 | local part of the email address is used. |
| 168 | .PP |
| 169 | The URL must match the review URL listed in the manifest XML file, or in the |
| 170 | \&.git/config within the project. For example: |
| 171 | .IP |
| 172 | [remote "origin"] |
| 173 | .IP |
| 174 | url = git://git.example.com/project.git |
| 175 | review = http://review.example.com/ |
| 176 | .IP |
| 177 | [review "http://review.example.com/"] |
| 178 | .IP |
| 179 | autoupload = true |
| 180 | autocopy = [email protected],my\-team\[email protected] |
| 181 | .PP |
| 182 | review.URL.uploadtopic: |
| 183 | .PP |
| 184 | To add a topic branch whenever uploading a commit, you can set a per\-project or |
| 185 | global Git option to do so. If review.URL.uploadtopic is set to "true" then repo |
| 186 | will assume you always want the equivalent of the \fB\-t\fR option to the repo command. |
| 187 | If unset or set to "false" then repo will make use of only the command line |
| 188 | option. |
| 189 | .PP |
| 190 | review.URL.uploadhashtags: |
| 191 | .PP |
| 192 | To add hashtags whenever uploading a commit, you can set a per\-project or global |
| 193 | Git option to do so. The value of review.URL.uploadhashtags will be used as |
| 194 | comma delimited hashtags like the \fB\-\-hashtag\fR option. |
| 195 | .PP |
| 196 | review.URL.uploadlabels: |
| 197 | .PP |
| 198 | To add labels whenever uploading a commit, you can set a per\-project or global |
| 199 | Git option to do so. The value of review.URL.uploadlabels will be used as comma |
| 200 | delimited labels like the \fB\-\-label\fR option. |
| 201 | .PP |
| 202 | review.URL.uploadnotify: |
| 203 | .PP |
| 204 | Control e\-mail notifications when uploading. |
| 205 | https://gerrit\-review.googlesource.com/Documentation/user\-upload.html#notify |
| 206 | .PP |
| Mike Frysinger | cbd78a9 | 2024-04-11 08:32:40 -0400 | [diff] [blame] | 207 | review.URL.uploadwarningthreshold: |
| 208 | .PP |
| 209 | Repo will warn you if you are attempting to upload a large number of commits in |
| 210 | one or more branches. By default, the threshold is five commits. This option |
| 211 | allows you to override the warning threshold to a different value. |
| 212 | .PP |
| Roger Shimizu | 0a1f533 | 2021-06-20 21:41:05 +0900 | [diff] [blame] | 213 | References |
| 214 | .PP |
| 215 | Gerrit Code Review: https://www.gerritcodereview.com/ |