]>
Commit | Line | Data |
---|---|---|
331b51d2 | 1 | --pretty[='<format>']:: |
3a4c1a5e | 2 | --format[='<format>']:: |
331b51d2 | 3 | |
1c911dc8 | 4 | Pretty-print the contents of the commit logs in a given format, |
331b51d2 JN |
5 | where '<format>' can be one of 'oneline', 'short', 'medium', |
6 | 'full', 'fuller', 'email', 'raw' and 'format:<string>'. | |
1c911dc8 | 7 | When omitted, the format defaults to 'medium'. |
94c22a5e CR |
8 | + |
9 | Note: you can specify the default pretty format in the repository | |
10 | configuration (see linkgit:git-config[1]). | |
331b51d2 | 11 | |
13120fdc JN |
12 | --abbrev-commit:: |
13 | Instead of showing the full 40-byte hexadecimal commit object | |
323b9db8 | 14 | name, show only a partial prefix. Non default number of |
13120fdc JN |
15 | digits can be specified with "--abbrev=<n>" (which also modifies |
16 | diff output, if it is displayed). | |
17 | + | |
18 | This should make "--pretty=oneline" a whole lot more readable for | |
19 | people using 80-column terminals. | |
20 | ||
de84accc NS |
21 | --oneline:: |
22 | This is a shorthand for "--pretty=oneline --abbrev-commit" | |
23 | used together. | |
24 | ||
331b51d2 JN |
25 | --encoding[=<encoding>]:: |
26 | The commit objects record the encoding used for the log message | |
27 | in their encoding header; this option can be used to tell the | |
28 | command to re-code the commit log message in the encoding | |
29 | preferred by the user. For non plumbing commands this | |
30 | defaults to UTF-8. | |
66b2ed09 JH |
31 | |
32 | --no-notes:: | |
33 | --show-notes:: | |
34 | Show the notes (see linkgit:git-notes[1]) that annotate the | |
35 | commit, when showing the commit log message. This is the default | |
36 | for `git log`, `git show` and `git whatchanged` commands when | |
7dccadf3 JH |
37 | there is no `--pretty`, `--format` nor `--oneline` option is |
38 | given on the command line. |