summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9edb8a0)
raw | patch | inline | side by side (parent: 9edb8a0)
author | Jeff King <peff@peff.net> | |
Thu, 4 Nov 2010 21:17:29 +0000 (17:17 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 5 Nov 2010 17:05:46 +0000 (10:05 -0700) |
It is an oversimplification to say that we can take
"[<commit> [<commit>]]", as it really depends on what
options have been given. Instead, let's list the major modes
of operation separately, as we do in other manpages.
This patch also adjusts the text immediately after the
synopsis to match the lines given in the synopsis.
For git-difftool, which has the same issue, let's refer the
user to the git-diff manpage rather than spelling it all out
again.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"[<commit> [<commit>]]", as it really depends on what
options have been given. Instead, let's list the major modes
of operation separately, as we do in other manpages.
This patch also adjusts the text immediately after the
synopsis to match the lines given in the synopsis.
For git-difftool, which has the same issue, let's refer the
user to the git-diff manpage rather than spelling it all out
again.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-diff.txt | patch | blob | history | |
Documentation/git-difftool.txt | patch | blob | history |
index 61728f69745fd454232006962bfd51ee663c8ed4..f6ac847507a635759323565be44b088b479d8bf0 100644 (file)
SYNOPSIS
--------
-'git diff' [<common diff options>] [<commit> [<commit>]] [--] [<path>...]
+[verse]
+'git diff' [options] [<commit>] [--] [<path>...]
+'git diff' [options] --cached [<commit>] [--] [<path>...]
+'git diff' [options] <commit> <commit> [--] [<path>...]
+'git diff' [options] [--no-index] [--] <path> <path>
DESCRIPTION
-----------
-Show changes between two trees, a tree and the working tree, a
-tree and the index file, or the index file and the working tree.
+Show changes between the working tree and the index or a tree, changes
+between the index and a tree, changes between two trees, or changes
+between two files on disk.
'git diff' [--options] [--] [<path>...]::
index a02e3b5190260cc8f5c72d195ff8fe5afa6cd29a..6fffbc7bf89d01b14505c03993de9d97d37e9404 100644 (file)
-----------
'git difftool' is a git command that allows you to compare and edit files
between revisions using common diff tools. 'git difftool' is a frontend
-to 'git diff' and accepts the same options and arguments.
+to 'git diff' and accepts the same options and arguments. See
+linkgit:git-diff[1].
OPTIONS
-------