Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-10-12 23:51:34 +0300
committerJunio C Hamano <gitster@pobox.com>2021-10-12 23:51:34 +0300
commit70fb2c98868fb6903970c5b3b6983d06eb0fcca0 (patch)
tree18604b4e4897cfd1be8bafedf57f1cb2574fca78 /Documentation
parentb306aefded95970422de16b0a721e44f36d86ce4 (diff)
parentb6d8887d3d607e0da971218f20428c0635c6362c (diff)
Merge branch 'ma/doc-git-version' into maint
Doc update. * ma/doc-git-version: documentation: add documentation for 'git version'
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-version.txt28
-rw-r--r--Documentation/git.txt4
2 files changed, 32 insertions, 0 deletions
diff --git a/Documentation/git-version.txt b/Documentation/git-version.txt
new file mode 100644
index 0000000000..80fa7754a6
--- /dev/null
+++ b/Documentation/git-version.txt
@@ -0,0 +1,28 @@
+git-version(1)
+==============
+
+NAME
+----
+git-version - Display version information about Git
+
+SYNOPSIS
+--------
+[verse]
+'git version' [--build-options]
+
+DESCRIPTION
+-----------
+With no options given, the version of 'git' is printed on the standard output.
+
+Note that `git --version` is identical to `git version` because the
+former is internally converted into the latter.
+
+OPTIONS
+-------
+--build-options::
+ Include additional information about how git was built for diagnostic
+ purposes.
+
+GIT
+---
+Part of the linkgit:git[1] suite
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 6dd241ef83..95fe6f31b4 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -41,6 +41,10 @@ OPTIONS
-------
--version::
Prints the Git suite version that the 'git' program came from.
++
+This option is internaly converted to `git version ...` and accepts
+the same options as the linkgit:git-version[1] command. If `--help` is
+also given, it takes precedence over `--version`.
--help::
Prints the synopsis and a list of the most commonly used