David Ostrovsky | 4f8df339 | 2019-11-09 14:12:43 -0800 | [diff] [blame] | 1 | = gerrit sequence show |
| 2 | |
| 3 | == NAME |
| 4 | gerrit 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 |
| 13 | Gerrit maintains the generation of the next available sequence numbers for |
| 14 | account, group and change entities. The sequences are stored as UTF-8 text in |
| 15 | a blob pointed to by the `refs/sequences/accounts`, `refs/sequences/groups` |
| 16 | and `refs/sequences/changes` refs. Those refs are stored in `All-Users` and |
| 17 | `All-Projects` git repositories correspondingly. |
| 18 | |
| 19 | This command allows to display the current sequence value for those sequences. |
| 20 | |
David Ostrovsky | 87ad385 | 2019-11-10 11:59:16 -0800 | [diff] [blame] | 21 | The link:cmd-sequence-set.html[sequence-set] command allows to set a new |
| 22 | sequence value. |
| 23 | |
David Ostrovsky | 4f8df339 | 2019-11-09 14:12:43 -0800 | [diff] [blame] | 24 | == ACCESS |
| 25 | Caller must be a member of the privileged 'Administrators' group. |
| 26 | |
| 27 | == SCRIPTING |
| 28 | This 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 |
| 39 | Display the current value for the 'changes' sequence: |
| 40 | |
| 41 | ---- |
| 42 | $ ssh -p 29418 review.example.com gerrit sequence show changes |
| 43 | 42 |
| 44 | ---- |
| 45 | |
| 46 | GERRIT |
| 47 | ------ |
| 48 | Part of link:index.html[Gerrit Code Review] |
| 49 | |
| 50 | SEARCHBOX |
| 51 | --------- |