fa7bdd39ed
Add the basic functionality to build a tree of projects for easier administation of access rights. With this change, any project can act as a parent project to another. The way to set a project as a parent of another is done with a new command: `gerrit set-project-parent`. Right now there is no possibility to set or remove the parenthood from the UI. Bug: issue 273 Change-Id: Iac514de89e24b470339ea53065f8b470de68ab75 Uploaded-by: Ulrik Sjölin <ulrik.sjolin@sonyericsson.com> Signed-off-by: Shawn O. Pearce <sop@google.com>
52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
gerrit set-project-parent
|
|
=========================
|
|
|
|
NAME
|
|
----
|
|
gerrit set-project-parent - Change the project permissions are inherited from.
|
|
|
|
SYNOPSIS
|
|
--------
|
|
[verse]
|
|
'ssh' -p <port> <host> 'gerrit set-project-parent' \
|
|
[\--parent <NAME>] \
|
|
<NAME> ...
|
|
|
|
DESCRIPTION
|
|
-----------
|
|
Changes the project that permissions are inherited through.
|
|
Every project inherits permissions from another project, by
|
|
default this is `\-- All Projects \--`. This command sets
|
|
the project to inherit through another one.
|
|
|
|
ACCESS
|
|
------
|
|
Caller must be a member of the privileged 'Administrators' group.
|
|
|
|
SCRIPTING
|
|
---------
|
|
This command is intended to be used in scripts.
|
|
|
|
OPTIONS
|
|
-------
|
|
\--parent::
|
|
Name of the parent to inherit through. If not specified,
|
|
the parent is set back to the default `\-- All Projects \--`.
|
|
|
|
EXAMPLES
|
|
--------
|
|
Configure `kernel/omap` to inherit permissions from `kernel/common`:
|
|
|
|
====
|
|
$ ssh -p 29418 review.example.com gerrit set-project-parent --parent kernel/common kernel/omap
|
|
====
|
|
|
|
SEE ALSO
|
|
--------
|
|
|
|
* link:access-control.html[Access Controls]
|
|
|
|
GERRIT
|
|
------
|
|
Part of link:index.html[Gerrit Code Review]
|