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