]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/pretty-options.txt
Merge branch 'maint-1.9' into maint-2.0
[thirdparty/git.git] / Documentation / pretty-options.txt
CommitLineData
efc39d6d
ŠN
1--pretty[=<format>]::
2--format=<format>::
331b51d2 3
1c911dc8 4 Pretty-print the contents of the commit logs in a given format,
331b51d2 5 where '<format>' can be one of 'oneline', 'short', 'medium',
41e4d69f
NR
6 'full', 'fuller', 'email', 'raw' and 'format:<string>'. See
7 the "PRETTY FORMATS" section for some additional details for each
8 format. When omitted, the format defaults to 'medium'.
94c22a5e
CR
9+
10Note: you can specify the default pretty format in the repository
11configuration (see linkgit:git-config[1]).
331b51d2 12
13120fdc
JN
13--abbrev-commit::
14 Instead of showing the full 40-byte hexadecimal commit object
323b9db8 15 name, show only a partial prefix. Non default number of
13120fdc
JN
16 digits can be specified with "--abbrev=<n>" (which also modifies
17 diff output, if it is displayed).
18+
19This should make "--pretty=oneline" a whole lot more readable for
20people using 80-column terminals.
21
0c47695a
JS
22--no-abbrev-commit::
23 Show the full 40-byte hexadecimal commit object name. This negates
24 `--abbrev-commit` and those options which imply it such as
25 "--oneline". It also overrides the 'log.abbrevCommit' variable.
26
de84accc
NS
27--oneline::
28 This is a shorthand for "--pretty=oneline --abbrev-commit"
29 used together.
30
e6604c35 31--encoding=<encoding>::
331b51d2
JN
32 The commit objects record the encoding used for the log message
33 in their encoding header; this option can be used to tell the
34 command to re-code the commit log message in the encoding
35 preferred by the user. For non plumbing commands this
36 defaults to UTF-8.
66b2ed09 37
ab18b2c0 38--notes[=<ref>]::
66b2ed09
JH
39 Show the notes (see linkgit:git-notes[1]) that annotate the
40 commit, when showing the commit log message. This is the default
41 for `git log`, `git show` and `git whatchanged` commands when
a58088ab 42 there is no `--pretty`, `--format`, or `--oneline` option given
ab18b2c0
JH
43 on the command line.
44+
45By default, the notes shown are from the notes refs listed in the
46'core.notesRef' and 'notes.displayRef' variables (or corresponding
47environment overrides). See linkgit:git-config[1] for more details.
48+
49With an optional '<ref>' argument, show this notes ref instead of the
50default notes ref(s). The ref is taken to be in `refs/notes/` if it
51is not qualified.
894a9d33 52+
ab18b2c0
JH
53Multiple --notes options can be combined to control which notes are
54being displayed. Examples: "--notes=foo" will show only notes from
55"refs/notes/foo"; "--notes=foo --notes" will show both notes from
56"refs/notes/foo" and from the default notes ref(s).
894a9d33 57
ab18b2c0
JH
58--no-notes::
59 Do not show notes. This negates the above `--notes` option, by
60 resetting the list of notes refs from which notes are shown.
61 Options are parsed in the order given on the command line, so e.g.
62 "--notes --notes=foo --no-notes --notes=bar" will only show notes
63 from "refs/notes/bar".
64
65--show-notes[=<ref>]::
894a9d33 66--[no-]standard-notes::
ab18b2c0
JH
67 These options are deprecated. Use the above --notes/--no-notes
68 options instead.
f2fef7b5
SB
69
70--show-signature::
71 Check the validity of a signed commit object by passing the signature
72 to `gpg --verify` and show the output.