Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = gerrit set-project-parent |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 4 | gerrit set-project-parent - Change the project permissions are inherited from. |
| 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 7 | [verse] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 8 | -- |
Michael Ochmann | e2d76a1 | 2016-06-23 17:07:37 +0200 | [diff] [blame] | 9 | _ssh_ -p <port> <host> _gerrit set-project-parent_ |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 10 | [--parent <NAME>] |
Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 11 | [--children-of <NAME>] |
| 12 | [--exclude <NAME>] |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 13 | <NAME> ... |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 14 | -- |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 15 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 16 | == DESCRIPTION |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 17 | Changes the project that permissions are inherited through. |
| 18 | Every project inherits permissions from another project, by |
Shawn O. Pearce | a063182 | 2011-06-14 11:18:18 -0700 | [diff] [blame] | 19 | default this is `All-Projects`. This command sets |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 20 | the project to inherit through another one. |
| 21 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 22 | == ACCESS |
Gustaf Lundh | 7ed07a7 | 2018-08-20 15:02:15 +0200 | [diff] [blame] | 23 | Caller must be a member of the privileged 'Administrators' group |
| 24 | or, if |
| 25 | link:config-gerrit.html#receive.allowProjectOwnersToChangeParent[receive.allowProjectOwnersToChangeParent] |
| 26 | is enabled, be a project owner of the projects that is getting their |
| 27 | parent updated. |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 28 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 29 | == SCRIPTING |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 30 | This command is intended to be used in scripts. |
| 31 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 32 | == OPTIONS |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 33 | --parent:: |
| 34 | Name of the parent to inherit through. If not specified, |
Shawn O. Pearce | a063182 | 2011-06-14 11:18:18 -0700 | [diff] [blame] | 35 | the parent is set back to the default `All-Projects`. |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 36 | |
Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 37 | --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' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 50 | == EXAMPLES |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 51 | Configure `kernel/omap` to inherit permissions from `kernel/common`: |
| 52 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 53 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 54 | $ ssh -p 29418 review.example.com gerrit set-project-parent --parent kernel/common kernel/omap |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 55 | ---- |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 56 | |
Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 57 | Reparent all children of `myParent` to `myOtherParent`: |
| 58 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 59 | ---- |
David Shevitz | c47f236 | 2018-09-27 10:55:35 -0700 | [diff] [blame] | 60 | $ ssh -p 29418 review.example.com gerrit set-project-parent \ |
| 61 | --children-of myParent --parent myOtherParent |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 62 | ---- |
Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 63 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 64 | == SEE ALSO |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 65 | |
| 66 | * link:access-control.html[Access Controls] |
| 67 | |
| 68 | GERRIT |
| 69 | ------ |
| 70 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 71 | |
| 72 | SEARCHBOX |
| 73 | --------- |