blob: 70918b285627f12d96987dfacbb9035c8fc24038 [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
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08007--
Shawn O. Pearce47769242011-06-14 16:40:48 -07008'ssh' -p <port> <host> 'gerrit set-project-parent'
9 [--parent <NAME>]
Edwin Kempin04388412011-09-27 08:36:17 +020010 [--children-of <NAME>]
11 [--exclude <NAME>]
Shawn O. Pearce47769242011-06-14 16:40:48 -070012 <NAME> ...
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080013--
lincolnfa7bdd32010-04-22 14:23:05 -030014
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080015== DESCRIPTION
lincolnfa7bdd32010-04-22 14:23:05 -030016Changes the project that permissions are inherited through.
17Every project inherits permissions from another project, by
Shawn O. Pearcea0631822011-06-14 11:18:18 -070018default this is `All-Projects`. This command sets
lincolnfa7bdd32010-04-22 14:23:05 -030019the project to inherit through another one.
20
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080021== ACCESS
lincolnfa7bdd32010-04-22 14:23:05 -030022Caller must be a member of the privileged 'Administrators' group.
23
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080024== SCRIPTING
lincolnfa7bdd32010-04-22 14:23:05 -030025This command is intended to be used in scripts.
26
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080027== OPTIONS
Shawn O. Pearce47769242011-06-14 16:40:48 -070028--parent::
29 Name of the parent to inherit through. If not specified,
Shawn O. Pearcea0631822011-06-14 11:18:18 -070030 the parent is set back to the default `All-Projects`.
lincolnfa7bdd32010-04-22 14:23:05 -030031
Edwin Kempin04388412011-09-27 08:36:17 +020032--children-of::
33 Name of the parent project for which all child projects should be
34 reparented. If the new parent project or any project in its
35 parent line is a child of this parent project it is automatically
36 excluded from reparenting.
37
38--exclude::
39 Name of a child project that should not be reparented. This
40 option can only be used if the option --children-of is set.
41 Multiple child projects can be excluded from reparenting by
42 specifying the --exclude option multiple times. Excluding a
43 project that is not a child project has no effect.
44
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080045== EXAMPLES
lincolnfa7bdd32010-04-22 14:23:05 -030046Configure `kernel/omap` to inherit permissions from `kernel/common`:
47
48====
49 $ ssh -p 29418 review.example.com gerrit set-project-parent --parent kernel/common kernel/omap
50====
51
Edwin Kempin04388412011-09-27 08:36:17 +020052Reparent all children of `myParent` to `myOtherParent`:
53
54====
55 $ ssh -p 29418 review.example.com gerrit set-project-parent \
56 --children-of myParent --parent myOtherParent
57====
58
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080059== SEE ALSO
lincolnfa7bdd32010-04-22 14:23:05 -030060
61* link:access-control.html[Access Controls]
62
63GERRIT
64------
65Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070066
67SEARCHBOX
68---------