diff options
author | Todd Zullinger <tmz@pobox.com> | 2018-01-28 20:16:07 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-30 22:12:18 +0100 |
commit | 9f5258cbb8f8ed2bf86b0078f178a26adc572eb9 (patch) | |
tree | 51c4349aa3a1a3d9b164fa7c3cf6621c35db1049 | |
parent | Git 2.14.3 (diff) | |
download | git-9f5258cbb8f8ed2bf86b0078f178a26adc572eb9.tar.xz git-9f5258cbb8f8ed2bf86b0078f178a26adc572eb9.zip |
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>
-rw-r--r-- | Documentation/git-show.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-show.txt b/Documentation/git-show.txt index 82a4125a2d..e73ef54017 100644 --- a/Documentation/git-show.txt +++ b/Documentation/git-show.txt @@ -9,7 +9,7 @@ git-show - Show various types of objects SYNOPSIS -------- [verse] -'git show' [options] <object>... +'git show' [options] [<object>...] DESCRIPTION ----------- @@ -35,7 +35,7 @@ This manual page describes only the most frequently used options. OPTIONS ------- <object>...:: - The names of objects to show. + The names of objects to show (defaults to 'HEAD'). For a more complete list of ways to spell object names, see "SPECIFYING REVISIONS" section in linkgit:gitrevisions[7]. |