summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d5776d5)
raw | patch | inline | side by side (parent: d5776d5)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 6 May 2005 20:17:13 +0000 (13:17 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Fri, 6 May 2005 21:55:16 +0000 (14:55 -0700) |
This updates the usage message string and Documentation/core-git.txt
to describe the new flags added to the git-diff-tree command.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
to describe the new flags added to the git-diff-tree command.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Documentation/core-git.txt | patch | blob | history | |
diff-tree.c | patch | blob | history |
index 1ccae4c095f18ff15b4702e14099a45b0f7d67ef..8bd893197e6e769b6e03ca1206e355214e16d56a 100644 (file)
################################################################
git-diff-tree
- git-diff-tree [-p] [-r] [-z] <tree-ish> <tree-ish> [<pattern>]*
+ git-diff-tree [-p] [-r] [-z] [--stdin] [-m] [-s] [-v] <tree-ish> <tree-ish> [<pattern>]*
Compares the content and mode of the blobs found via two tree objects.
-z
\0 line termination on output
+--stdin
+ When --stdin is specified, the command does not take
+ <tree-ish> arguments from the command line. Instead, it
+ reads either one <commit> or a pair of <tree-ish>
+ separated with a single space from its standard input.
+
+ When a single commit is given on one line of such input,
+ it compares the commit with its parents. The following
+ flags further affects its behaviour. This does not
+ apply to the case where two <tree-ish> separated with a
+ single space are given.
+
+-m
+ By default, "git-diff-tree --stdin" does not show
+ differences for merge commits. With this flag, it shows
+ differences to that commit from all of its parents.
+
+-s
+ By default, "git-diff-tree --stdin" shows differences,
+ either in machine-readable form (without -p) or in patch
+ form (with -p). This output can be supressed. It is
+ only useful with -v flag.
+
+-v
+ This flag causes "git-diff-tree --stdin" to also show
+ the commit message before the differences.
+
+
Limiting Output
If you're only interested in differences in a subset of files, for
diff --git a/diff-tree.c b/diff-tree.c
index b8abe207c50762b87332c6a1061a359db9de17c3..cdd224c147321a060b43c5256fa47c92cc794929 100644 (file)
--- a/diff-tree.c
+++ b/diff-tree.c
return -1;
}
-static char *diff_tree_usage = "diff-tree [-p] [-r] [-z] <tree sha1> <tree sha1>";
+static char *diff_tree_usage =
+"diff-tree [-p] [-r] [-z] [--stdin] [-m] [-s] [-v] <tree sha1> <tree sha1>";
int main(int argc, char **argv)
{