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 |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 7 | -- |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 8 | 'ssh' -p <port> <host> 'gerrit set-project-parent' |
| 9 | [--parent <NAME>] |
Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 10 | [--children-of <NAME>] |
| 11 | [--exclude <NAME>] |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 12 | <NAME> ... |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 13 | -- |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 14 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 15 | == DESCRIPTION |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 16 | Changes the project that permissions are inherited through. |
| 17 | Every project inherits permissions from another project, by |
Shawn O. Pearce | a063182 | 2011-06-14 11:18:18 -0700 | [diff] [blame] | 18 | default this is `All-Projects`. This command sets |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 19 | the project to inherit through another one. |
| 20 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 21 | == ACCESS |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 22 | Caller must be a member of the privileged 'Administrators' group. |
| 23 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 24 | == SCRIPTING |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 25 | This command is intended to be used in scripts. |
| 26 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 27 | == OPTIONS |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 28 | --parent:: |
| 29 | Name of the parent to inherit through. If not specified, |
Shawn O. Pearce | a063182 | 2011-06-14 11:18:18 -0700 | [diff] [blame] | 30 | the parent is set back to the default `All-Projects`. |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 31 | |
Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 32 | --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' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 45 | == EXAMPLES |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 46 | Configure `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 Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 52 | Reparent 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' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 59 | == SEE ALSO |
lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 60 | |
| 61 | * link:access-control.html[Access Controls] |
| 62 | |
| 63 | GERRIT |
| 64 | ------ |
| 65 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 66 | |
| 67 | SEARCHBOX |
| 68 | --------- |