Skip to content

Commit 9f5258c

Browse files
tmzullingergitster
authored andcommitted
doc: mention 'git show' defaults to HEAD
When 'git show' is called without any object it defaults to HEAD. This has been true since d4ed979 ("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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fc849d8 commit 9f5258c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-show.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-show - Show various types of objects
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git show' [options] <object>...
12+
'git show' [options] [<object>...]
1313

1414
DESCRIPTION
1515
-----------
@@ -35,7 +35,7 @@ This manual page describes only the most frequently used options.
3535
OPTIONS
3636
-------
3737
<object>...::
38-
The names of objects to show.
38+
The names of objects to show (defaults to 'HEAD').
3939
For a more complete list of ways to spell object names, see
4040
"SPECIFYING REVISIONS" section in linkgit:gitrevisions[7].
4141

0 commit comments

Comments
 (0)