summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d0f5f3)
raw | patch | inline | side by side (parent: 2d0f5f3)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Aug 2008 05:32:28 +0000 (22:32 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Aug 2008 06:30:11 +0000 (23:30 -0700) |
Long time ago, the feature of "diff-tree --stdin" to take a commit and its
parents on one line was broken, and did not support the common:
git rev-list --parents $commits... -- $paths... |
git diff-tree --stdin -v -p
usage pattern by Porcelains properly. For diff-tree to talk sensibly
about commits, it needs to see commits, not just trees; the code was fixed
to take list of commits on the standard input in 1.2.0.
However we left the documentation stale for a long time, until Karl
Hasselström finally noticed it very recently.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parents on one line was broken, and did not support the common:
git rev-list --parents $commits... -- $paths... |
git diff-tree --stdin -v -p
usage pattern by Porcelains properly. For diff-tree to talk sensibly
about commits, it needs to see commits, not just trees; the code was fixed
to take list of commits on the standard input in 1.2.0.
However we left the documentation stale for a long time, until Karl
Hasselström finally noticed it very recently.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-diff-tree.txt | patch | blob | history |
index f4fbec48d8e4411bcfa27f345d5decd9f39868a0..5d23985b570280baf30746f9749751aa079c7e76 100644 (file)
--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>
+ reads either one <commit> or a list of <commit>
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
-behavior. This does not apply to the case where two <tree-ish>
-separated with a single space are given.
+behavior. The remaining commits, when given, are used as if they are
+parents of the first commit.
-m::
By default, "git-diff-tree --stdin" does not show