| lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 1 | gerrit set-project-parent |
| 2 | ========================= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | gerrit set-project-parent - Change the project permissions are inherited from. |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
| Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 11 | 'ssh' -p <port> <host> 'gerrit set-project-parent' |
| 12 | [--parent <NAME>] |
| Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 13 | [--children-of <NAME>] |
| 14 | [--exclude <NAME>] |
| Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 15 | <NAME> ... |
| lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 16 | |
| 17 | DESCRIPTION |
| 18 | ----------- |
| 19 | Changes the project that permissions are inherited through. |
| 20 | Every project inherits permissions from another project, by |
| Shawn O. Pearce | a063182 | 2011-06-14 11:18:18 -0700 | [diff] [blame] | 21 | default this is `All-Projects`. This command sets |
| lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 22 | the project to inherit through another one. |
| 23 | |
| 24 | ACCESS |
| 25 | ------ |
| 26 | Caller must be a member of the privileged 'Administrators' group. |
| 27 | |
| 28 | SCRIPTING |
| 29 | --------- |
| 30 | This command is intended to be used in scripts. |
| 31 | |
| 32 | OPTIONS |
| 33 | ------- |
| Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 34 | --parent:: |
| 35 | Name of the parent to inherit through. If not specified, |
| Shawn O. Pearce | a063182 | 2011-06-14 11:18:18 -0700 | [diff] [blame] | 36 | the parent is set back to the default `All-Projects`. |
| lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 37 | |
| Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 38 | --children-of:: |
| 39 | Name of the parent project for which all child projects should be |
| 40 | reparented. If the new parent project or any project in its |
| 41 | parent line is a child of this parent project it is automatically |
| 42 | excluded from reparenting. |
| 43 | |
| 44 | --exclude:: |
| 45 | Name of a child project that should not be reparented. This |
| 46 | option can only be used if the option --children-of is set. |
| 47 | Multiple child projects can be excluded from reparenting by |
| 48 | specifying the --exclude option multiple times. Excluding a |
| 49 | project that is not a child project has no effect. |
| 50 | |
| lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 51 | EXAMPLES |
| 52 | -------- |
| 53 | Configure `kernel/omap` to inherit permissions from `kernel/common`: |
| 54 | |
| 55 | ==== |
| 56 | $ ssh -p 29418 review.example.com gerrit set-project-parent --parent kernel/common kernel/omap |
| 57 | ==== |
| 58 | |
| Edwin Kempin | 0438841 | 2011-09-27 08:36:17 +0200 | [diff] [blame] | 59 | Reparent all children of `myParent` to `myOtherParent`: |
| 60 | |
| 61 | ==== |
| 62 | $ ssh -p 29418 review.example.com gerrit set-project-parent \ |
| 63 | --children-of myParent --parent myOtherParent |
| 64 | ==== |
| 65 | |
| lincoln | fa7bdd3 | 2010-04-22 14:23:05 -0300 | [diff] [blame] | 66 | SEE ALSO |
| 67 | -------- |
| 68 | |
| 69 | * link:access-control.html[Access Controls] |
| 70 | |
| 71 | GERRIT |
| 72 | ------ |
| 73 | Part of link:index.html[Gerrit Code Review] |