]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/pretty-options.txt
remote-ext: do not segfault for blank lines
[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
de84accc
NS
22--oneline::
23 This is a shorthand for "--pretty=oneline --abbrev-commit"
24 used together.
25
331b51d2
JN
26--encoding[=<encoding>]::
27 The commit objects record the encoding used for the log message
28 in their encoding header; this option can be used to tell the
29 command to re-code the commit log message in the encoding
30 preferred by the user. For non plumbing commands this
31 defaults to UTF-8.
66b2ed09
JH
32
33--no-notes::
894a9d33 34--show-notes[=<ref>]::
66b2ed09
JH
35 Show the notes (see linkgit:git-notes[1]) that annotate the
36 commit, when showing the commit log message. This is the default
37 for `git log`, `git show` and `git whatchanged` commands when
7dccadf3
JH
38 there is no `--pretty`, `--format` nor `--oneline` option is
39 given on the command line.
894a9d33
TR
40+
41With an optional argument, add this ref to the list of notes. The ref
42is taken to be in `refs/notes/` if it is not qualified.
43
44--[no-]standard-notes::
45 Enable or disable populating the notes ref list from the
46 'core.notesRef' and 'notes.displayRef' variables (or
47 corresponding environment overrides). Enabled by default.
48 See linkgit:git-config[1].