Skip to content

Commit d89df36

Browse files
moygitster
authored andcommitted
Documentation/log: clarify what --raw means
There are several "raw formats", and describing --raw as "Generate the raw format" in the documentation for git-log seems to imply that it generates the raw *log* format. Clarify the wording by saying "raw diff format" explicitly, and make a special-case for "git log": "git log --raw" does not just change the format, it shows something which is not shown by default. Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 282616c commit d89df36

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Documentation/diff-options.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,17 @@ endif::git-format-patch[]
4141

4242
ifndef::git-format-patch[]
4343
--raw::
44-
Generate the raw format.
44+
ifndef::git-log[]
45+
Generate the diff in raw format.
4546
{git-diff-core? This is the default.}
47+
endif::git-log[]
48+
ifdef::git-log[]
49+
For each commit, show a summary of changes using the raw diff
50+
format. See the "RAW OUTPUT FORMAT" section of
51+
linkgit:git-diff[1]. This is different from showing the log
52+
itself in raw format, which you can achieve with
53+
`--format=raw`.
54+
endif::git-log[]
4655
endif::git-format-patch[]
4756

4857
ifndef::git-format-patch[]

0 commit comments

Comments
 (0)