From: Kristoffer Haugsbakk <co…@khaugsbakk.name>
This example implies that it acts a lot like some git-log(1)
invocation. The immediate thought is 'git log --patch', but that would
be wrong; the git-diff-tree(1) command does not output commits which do
not have a diff, like a merge commit. The example doesn’t say that, but
it is useful for the reader to know that they need to make this
adjustment if they want git-log(1) output. So let’s mention it after the
code example.
Of course, this is not complete; you would need to pass '--notes' or
'--show-notes-by-default' to git-diff-tree(1) in order to mimic the
git-log(1) notes behavior. And maybe other things. But those are small
details compared to not getting a commit at all.
Signed-off-by: Kristoffer Haugsbakk <co…@khaugsbakk.name>
---
Documentation/git-rev-list.adoc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/git-rev-list.adoc b/Documentation/git-rev-list.adoc
index f582491dd43..0dd6269d662 100644
--- a/Documentation/git-rev-list.adoc
+++ b/Documentation/git-rev-list.adoc
@@ -61,6 +61,9 @@ git rev-list --format=medium HEAD
git rev-list HEAD |
git diff-tree --stdin --format=medium -p
----------
++
+This will not print commits without diffs, like merge commits. Use
+`--always` to also print those commits.
* Print the list of commits on the current branch that touched any
file in the `Documentation` directory.
--
2.56.1.5.g155936fbb2a