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