git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 2/4] diff-tree: Note that the commit ID is printed with --stdin

From
Karl Hasselström <kha@treskal.com>
Date
Aug 10, 2008, 16:12 UTC
Message-ID
<20080810161253.7116.79513.stgit@yoghurt>
In-Reply-To
<20080810161035.7116.2171.stgit@yoghurt>

It's sort of already documented with the --no-commit-id command-line flag, but let's not hide important information from the user.

Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 Documentation/git-diff-tree.txt |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/Documentation/git-diff-tree.txt b/Documentation/git-diff-tree.txt
index 1fdf20d..1f4b91e 100644
--- a/Documentation/git-diff-tree.txt
+++ b/Documentation/git-diff-tree.txt
@@ -52,10 +52,14 @@ include::diff-options.txt[]
 	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.  The remaining commits, when given, are used as if they are
+When a single commit is given, it compares the commit with its
+parents.  The remaining commits, when given, are used as if they are
 parents of the first commit.
++
+The ID of the first (or only) commit, followed by a newline, is
+printed before the differences.
++
+The following flags further affects its behavior.
 
 -m::
 	By default, 'git-diff-tree --stdin' does not show
Previous: Karl HasselströmNext: Karl Hasselström
Message 3 of 6 in “Teach git diff-tree --stdin to diff trees”
  1. 0/4 Teach git diff-tree --stdin to diff treesKarl Hasselström, Aug 10, 2008
  2. 1/4 Refactoring: Split up diff_tree_stdinKarl Hasselström, Aug 10, 2008
  3. 2/4 diff-tree: Note that the commit ID is printed with --stdinKarl Hasselström, Aug 10, 2008
  4. 3/4 Teach git diff-tree --stdin to diff treesKarl Hasselström, Aug 10, 2008
  5. 4/4 Add test for diff-tree --stdin with two treesKarl Hasselström, Aug 10, 2008
  6. Karl HasselströmAug 10, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.