diff options
author | Alvaro Vilaplana Garcia <alvaro.vilaplana@gmail.com> | 2023-10-10 14:16:35 +0100 |
---|---|---|
committer | Álvaro Vilaplana García <alvaro.vilaplana@gmail.com> | 2023-10-10 15:39:25 +0000 |
commit | 22a79c78fb42035abf07150433190add9a1e0082 (patch) | |
tree | 5aefc3ab6ab2cd7b96a06058f9c48010ed622ce4 | |
parent | fe271837a9e7f78494db8b3169824656248eaac1 (diff) |
Explain in ls-projects SSH API when the "parent" field is "?-N"
Change I301ae1e158 extended the /project/ REST API documentation
to explain the meaning of the 'parent' field being set to "?-N".
Similarly, this change updates the ls-projects SSH API documentation to
document the same behaviour.
Release-Notes: Explain in ls-projects SSH API when the "parent" field is "?-N"
Change-Id: Ia7e45c7125b6b228288f8bf0a6e7add851f5f2bf
-rw-r--r-- | Documentation/cmd-ls-projects.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/cmd-ls-projects.txt b/Documentation/cmd-ls-projects.txt index 1dd6720148..ebd365af7f 100644 --- a/Documentation/cmd-ls-projects.txt +++ b/Documentation/cmd-ls-projects.txt @@ -58,6 +58,21 @@ used to unescape the output. Displays project inheritance in a tree-like format. This option does not work together with the show-branch option. +[NOTE] +If the calling user does not meet any of the following criteria: + +* The state of the parent project is either "ACTIVE" or "READ ONLY", +and the calling user has READ permission to at least one ref. +* The state of the parent project is "HIDDEN" and the calling user +has READ permission for 'refs/meta/config'. + +Then the 'parent' field will be labeled as '?-N', where N represents the +nesting level within the project's tree structure. In the provided example, +'All-Projects' corresponds to level 1, 'parent-project' to level 2, and +'child-project' to level 3. + +The output format to display the results should be `json` or `json_compact`. + --type:: Display only projects of the specified type. If not specified, defaults to `all`. Supported types: |