Skip to contentSkip to conversation

Document that diff/diff-tree accept any number of trees.

PATCH New Santi 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore

Santi

author
#0 lore raw

PATCH 1/1 Document that diff/diff-tree accept any number of trees.

---

b98780e10df65bf9b37b4368d97bac53b5371170

Documentation/git-diff-tree.txt |    5 ++++-
Documentation/git-diff.txt      |    4 ++--
2 files changed, 6 insertions(+), 3 deletions(-)

b98780e10df65bf9b37b4368d97bac53b5371170

Documentation/git-diff-tree.txt +0 -0
index 906830d..3141ad8 100644
@@ -11,7 +11,7 @@ SYNOPSIS

[verse]
'git-diff-tree' [--stdin] [-m] [-s] [-v] [--no-commit-id] [--pretty]

             [-t] [-r] [-c | --cc] [--root] [<common diff options>]

- <tree-ish> [<tree-ish>] [<path>...]
+ <tree-ish>... [<path>...]

DESCRIPTION
-----------
@@ -20,6 +20,9 @@ Compares the content and mode of the blo
If there is only one <tree-ish> given, the commit is compared with its parents (see --stdin below).

+If three or more <tree-ish> are given, it shows the differences from each of +the <tree-ish> to the first one simultaneously (see -c below).
+
Note that "git-diff-tree" can use the tree encapsulated in a commit object.

OPTIONS

Documentation/git-diff.txt +0 -0
index 7267bcd..1842d7a 100644
@@ -8,7 +8,7 @@ git-diff - Show changes between commits,
 

SYNOPSIS
--------
-'git-diff' [ --diff-options ] <ent>{0,2} [<path>...] +'git-diff' [ --diff-options ] [<ent>...] [<path>...]

DESCRIPTION
-----------
@@ -25,7 +25,7 @@ the number of ents given to the command.
--cached can be given to compare the index file and the named tree.

-* When two <ent>s are given, these two trees are compared +* When two or more <ent>s are given, these trees are compared
using git-diff-tree.

OPTIONS
--
1.3.3.g5b1bb