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