List the Included-Groups in a specific Gerrit group

167 views
Skip to first unread message

Mk

unread,
Mar 25, 2024, 12:18:53 AM3/25/24
to Repo and Gerrit Discussion
I need to list the "Included Groups" in a specific Gerrit group using gerrit ssh command.

gerrit ls-groups --group "Administrator" --> this command not listed the included sub-groups.

So can i know the gerrit command to list?


David Åkerman

unread,
Mar 26, 2024, 3:09:34 AM3/26/24
to Repo and Gerrit Discussion
Hi Mk,

You can use the command ls-members to do this.
It is documented here: https://gerrit-review.googlesource.com/Documentation/cmd-ls-members.html

Mk

unread,
Apr 3, 2024, 1:20:54 AM4/3/24
to Repo and Gerrit Discussion
Unfortunately, the command (gerrit ls-members --recursive "abc_developers") does not list the groups included in the provided Gerrit group.

For example, if I have a Gerrit group named "abc_developers" and it includes many other groups under the "Included Groups" section, I would like to list these included groups using a Gerrit SSH command.

Matthias Sohn

unread,
Apr 3, 2024, 5:25:47 AM4/3/24
to Mk, Repo and Gerrit Discussion
On Wed, Apr 3, 2024 at 7:21 AM Mk <moha...@gmail.com> wrote:
Unfortunately, the command (gerrit ls-members --recursive "abc_developers") does not list the groups included in the provided Gerrit group.


Please avoid top posting in this list. Use interleaved posting instead which makes it easier to follow a discussion thread.
 
For example, if I have a Gerrit group named "abc_developers" and it includes many other groups under the "Included Groups" section, I would like to list these included groups using a Gerrit SSH command.

On Tuesday, March 26, 2024 at 12:39:34 PM UTC+5:30 David Åkerman wrote:
On Monday, March 25, 2024 at 5:18:53 AM UTC+1 Mk wrote:
I need to list the "Included Groups" in a specific Gerrit group using gerrit ssh command.

gerrit ls-groups --group "Administrator" --> this command not listed the included sub-groups.

So can i know the gerrit command to list?


Hi Mk,

You can use the command ls-members to do this.
It is documented here: https://gerrit-review.googlesource.com/Documentation/cmd-ls-members.html

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/2e601977-0dc3-4785-ae88-ccd013b29d06n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages