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