doc: mention 'git show' defaults to HEAD
When 'git show' is called without any object it defaults to HEAD. This has been true since d4ed9793fd ("Simplify common default options setup for built-in log family.", 2006-04-16). The SYNOPSIS suggests that the object argument is required. Clarify that it is not required and note the default. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Todd Zullinger committed
Jan 28, 2018 at 14:16 UTC
9f5258cbb8f8ed2bf86b0078f178a26adc572eb9
1 file changed
+2
-2
Documentation/git-show.txt
+2
-2
@@ -9,7 +9,7 @@ git-show - Show various types of objects
9
SYNOPSIS
10
--------
11
[verse]
12
-'git show' [options] <object>...
12
+'git show' [options] [<object>...]
13
14
DESCRIPTION
15
-----------
@@ -35,7 +35,7 @@ This manual page describes only the most frequently used options.
35
OPTIONS
36
-------
37
<object>...::
38
- The names of objects to show.
38
+ The names of objects to show (defaults to 'HEAD').
39
For a more complete list of ways to spell object names, see
40
"SPECIFYING REVISIONS" section in linkgit:gitrevisions[7].
41