Magnus Bäck | f9b41a4 | 2012-09-25 12:20:39 -0400 | [diff] [blame^] | 1 | gerrit version |
| 2 | ================ |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | gerrit version - Show the version of the currently executing Gerrit server |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
| 10 | [verse] |
| 11 | 'ssh' -p <port> <host> 'gerrit version' |
| 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | Displays a one-line response with the string `gerrit version` followed |
| 16 | by the currently executing version of Gerrit. |
| 17 | |
| 18 | The `git describe` command is used to generate the version string based |
| 19 | on the Git commit used to build Gerrit. For official releases of Gerrit, |
| 20 | the version string will be equal to the Git tag set in the Gerrit source |
| 21 | code, which in turn is equal to the name of the release (for example |
| 22 | 2.4.2). When building Gerrit from another commit (one that doesn't have |
| 23 | an official-looking tag pointing to it), the version string has the form |
| 24 | `<tagname>-<n>-g<sha1>`, where `<n>` is an integer indicating the number |
| 25 | of commits ahead of the `<tagname>` tag the commit is, and `<sha1>` is |
| 26 | the seven-character abbreviated SHA-1 of the commit. See the `git |
| 27 | describe` documentation for details on how `<tagname>` is chosen and how |
| 28 | `<n>` is computed. |
| 29 | |
| 30 | ACCESS |
| 31 | ------ |
| 32 | Any user who has configured an SSH key. |
| 33 | |
| 34 | SCRIPTING |
| 35 | --------- |
| 36 | This command is intended to be used in scripts. |
| 37 | |
| 38 | EXAMPLES |
| 39 | -------- |
| 40 | |
| 41 | ===== |
| 42 | $ ssh -p 29418 review.example.com gerrit version |
| 43 | gerrit version 2.4.2 |
| 44 | ===== |
| 45 | |
| 46 | GERRIT |
| 47 | ------ |
| 48 | Part of link:index.html[Gerrit Code Review] |