Files
gerrit/Documentation/cmd-sequence-show.txt
David Ostrovsky 4f8df3399b Add ssh command to show current sequence value
Change-Id: Ifcbff0943bbdacfd792a4c2454492522dec8609a
2019-11-10 12:00:13 -08:00

49 lines
1.1 KiB
Plaintext

= gerrit sequence show
== NAME
gerrit sequence show - Display current sequence value.
== SYNOPSIS
[verse]
--
_ssh_ -p <port> <host> _gerrit sequence show_ <NAME>
--
== DESCRIPTION
Gerrit maintains the generation of the next available sequence numbers for
account, group and change entities. The sequences are stored as UTF-8 text in
a blob pointed to by the `refs/sequences/accounts`, `refs/sequences/groups`
and `refs/sequences/changes` refs. Those refs are stored in `All-Users` and
`All-Projects` git repositories correspondingly.
This command allows to display the current sequence value for those sequences.
== ACCESS
Caller must be a member of the privileged 'Administrators' group.
== SCRIPTING
This command is intended to be used in scripts.
== OPTIONS
<NAME>::
Sequence name to show the current value for.
Currently supported values:
* accounts
* groups
* changes
== EXAMPLES
Display the current value for the 'changes' sequence:
----
$ ssh -p 29418 review.example.com gerrit sequence show changes
42
----
GERRIT
------
Part of link:index.html[Gerrit Code Review]
SEARCHBOX
---------