blob: 801f15a5fa07a81905b4e6d0ba3daedc292158fb [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= gerrit set-project-parent
lincolnfa7bdd32010-04-22 14:23:05 -03002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
lincolnfa7bdd32010-04-22 14:23:05 -03004gerrit set-project-parent - Change the project permissions are inherited from.
5
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08008--
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009_ssh_ -p <port> <host> _gerrit set-project-parent_
Shawn O. Pearce47769242011-06-14 16:40:48 -070010 [--parent <NAME>]
Edwin Kempin04388412011-09-27 08:36:17 +020011 [--children-of <NAME>]
12 [--exclude <NAME>]
Shawn O. Pearce47769242011-06-14 16:40:48 -070013 <NAME> ...
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080014--
lincolnfa7bdd32010-04-22 14:23:05 -030015
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080016== DESCRIPTION
lincolnfa7bdd32010-04-22 14:23:05 -030017Changes the project that permissions are inherited through.
18Every project inherits permissions from another project, by
Shawn O. Pearcea0631822011-06-14 11:18:18 -070019default this is `All-Projects`. This command sets
lincolnfa7bdd32010-04-22 14:23:05 -030020the project to inherit through another one.
21
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080022== ACCESS
Gustaf Lundh7ed07a72018-08-20 15:02:15 +020023Caller must be a member of the privileged 'Administrators' group
24or, if
25link:config-gerrit.html#receive.allowProjectOwnersToChangeParent[receive.allowProjectOwnersToChangeParent]
26is enabled, be a project owner of the projects that is getting their
27parent updated.
lincolnfa7bdd32010-04-22 14:23:05 -030028
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080029== SCRIPTING
lincolnfa7bdd32010-04-22 14:23:05 -030030This command is intended to be used in scripts.
31
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080032== OPTIONS
Shawn O. Pearce47769242011-06-14 16:40:48 -070033--parent::
34 Name of the parent to inherit through. If not specified,
Shawn O. Pearcea0631822011-06-14 11:18:18 -070035 the parent is set back to the default `All-Projects`.
lincolnfa7bdd32010-04-22 14:23:05 -030036
Edwin Kempin04388412011-09-27 08:36:17 +020037--children-of::
38 Name of the parent project for which all child projects should be
39 reparented. If the new parent project or any project in its
40 parent line is a child of this parent project it is automatically
41 excluded from reparenting.
42
43--exclude::
44 Name of a child project that should not be reparented. This
45 option can only be used if the option --children-of is set.
46 Multiple child projects can be excluded from reparenting by
47 specifying the --exclude option multiple times. Excluding a
48 project that is not a child project has no effect.
49
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080050== EXAMPLES
lincolnfa7bdd32010-04-22 14:23:05 -030051Configure `kernel/omap` to inherit permissions from `kernel/common`:
52
Michael Ochmannb99feab2016-07-06 14:10:22 +020053----
David Shevitzc47f2362018-09-27 10:55:35 -070054$ ssh -p 29418 review.example.com gerrit set-project-parent --parent kernel/common kernel/omap
Michael Ochmannb99feab2016-07-06 14:10:22 +020055----
lincolnfa7bdd32010-04-22 14:23:05 -030056
Edwin Kempin04388412011-09-27 08:36:17 +020057Reparent all children of `myParent` to `myOtherParent`:
58
Michael Ochmannb99feab2016-07-06 14:10:22 +020059----
David Shevitzc47f2362018-09-27 10:55:35 -070060$ ssh -p 29418 review.example.com gerrit set-project-parent \
61 --children-of myParent --parent myOtherParent
Michael Ochmannb99feab2016-07-06 14:10:22 +020062----
Edwin Kempin04388412011-09-27 08:36:17 +020063
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080064== SEE ALSO
lincolnfa7bdd32010-04-22 14:23:05 -030065
66* link:access-control.html[Access Controls]
67
68GERRIT
69------
70Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070071
72SEARCHBOX
73---------