Display the sha1 of each branch for all relevant projects in ssh Having the ability to know the sha1 of a branch for all projects in gerrit can make an automatic build server more efficient so as to not resync the projects that it already has. This change adds an optional '--show-branch' argument to gerrit ls-projects that can be used to specify a branch name. The revision of that branch will be displayed next to the name of the project in the list returned by the command. Change-Id: Iaf662fb1d46e640a88a7e1dbb68f0f4052defe4c
diff --git a/Documentation/cmd-ls-projects.txt b/Documentation/cmd-ls-projects.txt index 02c03ae..1200e18 100644 --- a/Documentation/cmd-ls-projects.txt +++ b/Documentation/cmd-ls-projects.txt
@@ -8,7 +8,7 @@ SYNOPSIS -------- [verse] -'ssh' -p <port> <host> 'gerrit ls-projects' +'ssh' -p <port> <host> 'gerrit ls-projects' [\--show-branch <BRANCH>] DESCRIPTION ----------- @@ -26,6 +26,12 @@ --------- This command is intended to be used in scripts. +OPTIONS +------- +\--show-branch:: +\-b:: + Name of the branch for which the command will display the sha of each project. + EXAMPLES --------