blob: 6b9371f670ab0969be5bf353e24e31f66b27c555 [file] [log] [blame]
David Ostrovsky4f8df3392019-11-09 14:12:43 -08001= gerrit sequence show
2
3== NAME
4gerrit sequence show - Display current sequence value.
5
6== SYNOPSIS
7[verse]
8--
9_ssh_ -p <port> <host> _gerrit sequence show_ <NAME>
10--
11
12== DESCRIPTION
13Gerrit maintains the generation of the next available sequence numbers for
14account, group and change entities. The sequences are stored as UTF-8 text in
15a blob pointed to by the `refs/sequences/accounts`, `refs/sequences/groups`
16and `refs/sequences/changes` refs. Those refs are stored in `All-Users` and
17`All-Projects` git repositories correspondingly.
18
19This command allows to display the current sequence value for those sequences.
20
David Ostrovsky87ad3852019-11-10 11:59:16 -080021The link:cmd-sequence-set.html[sequence-set] command allows to set a new
22sequence value.
23
David Ostrovsky4f8df3392019-11-09 14:12:43 -080024== ACCESS
25Caller must be a member of the privileged 'Administrators' group.
26
27== SCRIPTING
28This command is intended to be used in scripts.
29
30== OPTIONS
31<NAME>::
32 Sequence name to show the current value for.
33 Currently supported values:
34 * accounts
35 * groups
36 * changes
37
38== EXAMPLES
39Display the current value for the 'changes' sequence:
40
41----
42$ ssh -p 29418 review.example.com gerrit sequence show changes
4342
44----
45
46GERRIT
47------
48Part of link:index.html[Gerrit Code Review]
49
50SEARCHBOX
51---------