From: Ramkumar Ramachandra Date: Wed, 24 Apr 2013 16:33:34 GMT Subject: [PATCH 3/5] git-diff.txt: group the [--] and [...] templates Message-ID: <1366821216-20868-4-git-send-email-artagnon@gmail.com> In-Reply-To: <1366821216-20868-1-git-send-email-artagnon@gmail.com> Clarify that "--" is meant to disambiguate paths from the other options. Signed-off-by: Ramkumar Ramachandra --- Documentation/git-diff.txt | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Documentation/git-diff.txt b/Documentation/git-diff.txt index 47aa3fc..a0fdfc2 100644 --- a/Documentation/git-diff.txt +++ b/Documentation/git-diff.txt @@ -9,11 +9,11 @@ git-diff - Show changes between commits, commit and working tree, etc SYNOPSIS -------- [verse] -'git diff' [options] [] [--] [...] -'git diff' [options] --cached [] [--] [...] +'git diff' [options] [] [[--] [...]] +'git diff' [options] --cached [] [[--] [...]] 'git diff' [options] -'git diff' [options] [--] [...] -'git diff' [options] [--no-index] [--] +'git diff' [options] [[--] [...]] +'git diff' [options] [--no-index] [[--] ] DESCRIPTION ----------- @@ -21,7 +21,7 @@ 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] [--] [...]:: +'git diff' [options] [[--] [...]]:: This form is to view the changes you made relative to the index (staging area for the next commit). In other @@ -33,7 +33,7 @@ If exactly two paths are given and at least one points outside the current repository, 'git diff' will compare the two files / directories. This behavior can be forced by --no-index. -'git diff' [options] --cached [] [--] [...]:: +'git diff' [options] --cached [] [[--] [...]]:: This form is to view the changes you staged for the next commit relative to the named . Typically you @@ -43,7 +43,7 @@ directories. This behavior can be forced by --no-index. is not given, it shows all staged changes. --staged is a synonym of --cached. -'git diff' [options] [--] [...]:: +'git diff' [options] [[--] [...]]:: This form is to view the changes you have in your working tree relative to the named . You can @@ -56,18 +56,18 @@ directories. This behavior can be forced by --no-index. This form is to view the differences between the raw contents of two blob objects. -'git diff' [options] [--] [...]:: +'git diff' [options] [[--] [...]]:: This is to view the changes between two arbitrary . -'git diff' [options] .. [--] [...]:: +'git diff' [options] .. [[--] [...]]:: This is synonymous to the previous form. If on one side is omitted, it will have the same effect as using HEAD instead. -'git diff' [options] \... [--] [...]:: +'git diff' [options] \... [[--] [...]]:: This form is to view the changes on the branch containing and up to the second , starting at a common ancestor -- 1.8.2.1.502.g2d60b5c