]>
Commit | Line | Data |
---|---|---|
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', |
b4a56a39 JH |
6 | 'full', 'fuller', 'email', 'raw', 'format:<string>' |
7 | and 'tformat:<string>'. When '<format>' is none of the above, | |
8 | and has '%placeholder' in it, it acts as if | |
9 | '--pretty=tformat:<format>' were given. | |
10 | + | |
11 | See the "PRETTY FORMATS" section for some additional details for each | |
12 | format. When '=<format>' part is omitted, it defaults to 'medium'. | |
94c22a5e CR |
13 | + |
14 | Note: you can specify the default pretty format in the repository | |
15 | configuration (see linkgit:git-config[1]). | |
331b51d2 | 16 | |
13120fdc JN |
17 | --abbrev-commit:: |
18 | Instead of showing the full 40-byte hexadecimal commit object | |
323b9db8 | 19 | name, show only a partial prefix. Non default number of |
13120fdc JN |
20 | digits can be specified with "--abbrev=<n>" (which also modifies |
21 | diff output, if it is displayed). | |
22 | + | |
23 | This should make "--pretty=oneline" a whole lot more readable for | |
24 | people using 80-column terminals. | |
25 | ||
0c47695a JS |
26 | --no-abbrev-commit:: |
27 | Show the full 40-byte hexadecimal commit object name. This negates | |
28 | `--abbrev-commit` and those options which imply it such as | |
29 | "--oneline". It also overrides the 'log.abbrevCommit' variable. | |
30 | ||
de84accc NS |
31 | --oneline:: |
32 | This is a shorthand for "--pretty=oneline --abbrev-commit" | |
33 | used together. | |
34 | ||
e6604c35 | 35 | --encoding=<encoding>:: |
331b51d2 JN |
36 | The commit objects record the encoding used for the log message |
37 | in their encoding header; this option can be used to tell the | |
38 | command to re-code the commit log message in the encoding | |
39 | preferred by the user. For non plumbing commands this | |
e479c5f8 JK |
40 | defaults to UTF-8. Note that if an object claims to be encoded |
41 | in `X` and we are outputting in `X`, we will output the object | |
42 | verbatim; this means that invalid sequences in the original | |
43 | commit may be copied to the output. | |
66b2ed09 | 44 | |
2aea7a51 | 45 | ifndef::git-rev-list[] |
ab18b2c0 | 46 | --notes[=<ref>]:: |
66b2ed09 JH |
47 | Show the notes (see linkgit:git-notes[1]) that annotate the |
48 | commit, when showing the commit log message. This is the default | |
49 | for `git log`, `git show` and `git whatchanged` commands when | |
a58088ab | 50 | there is no `--pretty`, `--format`, or `--oneline` option given |
ab18b2c0 JH |
51 | on the command line. |
52 | + | |
53 | By default, the notes shown are from the notes refs listed in the | |
54 | 'core.notesRef' and 'notes.displayRef' variables (or corresponding | |
55 | environment overrides). See linkgit:git-config[1] for more details. | |
56 | + | |
57 | With an optional '<ref>' argument, show this notes ref instead of the | |
58 | default notes ref(s). The ref is taken to be in `refs/notes/` if it | |
59 | is not qualified. | |
894a9d33 | 60 | + |
ab18b2c0 JH |
61 | Multiple --notes options can be combined to control which notes are |
62 | being displayed. Examples: "--notes=foo" will show only notes from | |
63 | "refs/notes/foo"; "--notes=foo --notes" will show both notes from | |
64 | "refs/notes/foo" and from the default notes ref(s). | |
894a9d33 | 65 | |
ab18b2c0 JH |
66 | --no-notes:: |
67 | Do not show notes. This negates the above `--notes` option, by | |
68 | resetting the list of notes refs from which notes are shown. | |
69 | Options are parsed in the order given on the command line, so e.g. | |
70 | "--notes --notes=foo --no-notes --notes=bar" will only show notes | |
71 | from "refs/notes/bar". | |
72 | ||
73 | --show-notes[=<ref>]:: | |
894a9d33 | 74 | --[no-]standard-notes:: |
ab18b2c0 JH |
75 | These options are deprecated. Use the above --notes/--no-notes |
76 | options instead. | |
2aea7a51 | 77 | endif::git-rev-list[] |
f2fef7b5 SB |
78 | |
79 | --show-signature:: | |
80 | Check the validity of a signed commit object by passing the signature | |
81 | to `gpg --verify` and show the output. |