Skip to content

Commit

Permalink
Documentation: Move "git diff <blob> <blob>"
Browse files Browse the repository at this point in the history
The section describing "git diff <blob> <blob>" had been placed in a
position that disrupted the statement "This is synonymous to the
previous form".

Reorder to place this form after all the <commit>-using forms, and the
note applying to them. Also mention this form in the initial description
paragraph.

Signed-off-by: Kevin Bracey <kevin@bracey.fi>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Kevin Bracey authored and Junio C Hamano committed Jun 18, 2013
1 parent 04a74b6 commit d7747bd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Documentation/git-diff.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ SYNOPSIS
DESCRIPTION
-----------
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.
between the index and a tree, changes between two trees, changes between
two blob objects, or changes between two files on disk.

'git diff' [--options] [--] [<path>...]::

Expand Down Expand Up @@ -56,11 +56,6 @@ directories. This behavior can be forced by --no-index.
This is to view the changes between two arbitrary
<commit>.

'git diff' [options] <blob> <blob>::

This form is to view the differences between the raw
contents of two blob objects.

'git diff' [--options] <commit>..<commit> [--] [<path>...]::

This is synonymous to the previous form. If <commit> on
Expand All @@ -87,6 +82,11 @@ and the range notations ("<commit>..<commit>" and
"<commit>\...<commit>") do not mean a range as defined in the
"SPECIFYING RANGES" section in linkgit:gitrevisions[7].

'git diff' [options] <blob> <blob>::

This form is to view the differences between the raw
contents of two blob objects.

OPTIONS
-------
:git-diff: 1
Expand Down

0 comments on commit d7747bd

Please sign in to comment.