Skip to content

Commit 92de921

Browse files
moygitster
authored andcommitted
Documentation/log: clarify sha1 non-abbreviation in log --raw
Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d89df36 commit 92de921

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/pretty-formats.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ stored in the commit object. Notably, the SHA-1s are
7979
displayed in full, regardless of whether --abbrev or
8080
--no-abbrev are used, and 'parents' information show the
8181
true parent commits, without taking grafts or history
82-
simplification into account.
82+
simplification into account. Note that this format affects the way
83+
commits are displayed, but not the way the diff is shown e.g. with
84+
`git log --raw`. To get full object names in a raw diff format,
85+
use `--no-abbrev`.
8386

8487
* 'format:<string>'
8588
+

0 commit comments

Comments
 (0)