1
- -- pretty[=<format >]::
2
- -- format=<format >::
1
+ ` --pretty[=<format>]` ::
2
+ ` --format=<format>` ::
3
3
4
4
Pretty-print the contents of the commit logs in a given format,
5
- where '<format>' can be one of ' oneline', ' short', ' medium' ,
6
- ' full', ' fuller', ' reference', ' 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.
5
+ where '<format>' can be one of ` oneline`, ` short`, ` medium` ,
6
+ ` full`, ` fuller`, ` reference`, ` 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
10
+
11
11
See the "PRETTY FORMATS" section for some additional details for each
12
- format. When ' =<format>' part is omitted, it defaults to ' medium' .
12
+ format. When ` =<format>` part is omitted, it defaults to ` medium` .
13
13
+
14
- Note : you can specify the default pretty format in the repository
14
+ NOTE : you can specify the default pretty format in the repository
15
15
configuration (see linkgit:git-config[1]).
16
16
17
- --abbrev-commit::
17
+ ` --abbrev-commit` ::
18
18
Instead of showing the full 40-byte hexadecimal commit object
19
19
name, show a prefix that names the object uniquely.
20
- " --abbrev=<n>" (which also modifies diff output, if it is displayed)
20
+ ` --abbrev=<n>` (which also modifies diff output, if it is displayed)
21
21
option can be used to specify the minimum length of the prefix.
22
22
+
23
- This should make " --pretty=oneline" a whole lot more readable for
23
+ This should make ` --pretty=oneline` a whole lot more readable for
24
24
people using 80-column terminals.
25
25
26
- --no-abbrev-commit::
26
+ ` --no-abbrev-commit` ::
27
27
Show the full 40-byte hexadecimal commit object name. This negates
28
28
`--abbrev-commit`, either explicit or implied by other options such
29
- as " --oneline" . It also overrides the `log.abbrevCommit` variable.
29
+ as ` --oneline` . It also overrides the `log.abbrevCommit` variable.
30
30
31
- --oneline::
32
- This is a shorthand for " --pretty=oneline --abbrev-commit"
31
+ ` --oneline` ::
32
+ This is a shorthand for ` --pretty=oneline --abbrev-commit`
33
33
used together.
34
34
35
- --encoding=<encoding>::
35
+ ` --encoding=<encoding>` ::
36
36
Commit objects record the character encoding used for the log message
37
37
in their encoding header; this option can be used to tell the
38
38
command to re-code the commit log message in the encoding
@@ -44,22 +44,22 @@ people using 80-column terminals.
44
44
to convert the commit, we will quietly output the original
45
45
object verbatim.
46
46
47
- --expand-tabs=<n>::
48
- --expand-tabs::
49
- --no-expand-tabs::
47
+ ` --expand-tabs=<n>` ::
48
+ ` --expand-tabs` ::
49
+ ` --no-expand-tabs` ::
50
50
Perform a tab expansion (replace each tab with enough spaces
51
- to fill to the next display column that is a multiple of ' <n>' )
51
+ to fill to the next display column that is a multiple of _ <n>_ )
52
52
in the log message before showing it in the output.
53
53
`--expand-tabs` is a short-hand for `--expand-tabs=8`, and
54
54
`--no-expand-tabs` is a short-hand for `--expand-tabs=0`,
55
55
which disables tab expansion.
56
56
+
57
57
By default, tabs are expanded in pretty formats that indent the log
58
- message by 4 spaces (i.e. ' medium' , which is the default, ' full' ,
59
- and ' fuller' ).
58
+ message by 4 spaces (i.e. ` medium` , which is the default, ` full` ,
59
+ and ` fuller` ).
60
60
61
61
ifndef::git-rev-list[]
62
- --notes[=<ref>]::
62
+ ` --notes[=<ref>]` ::
63
63
Show the notes (see linkgit:git-notes[1]) that annotate the
64
64
commit, when showing the commit log message. This is the default
65
65
ifndef::with-breaking-changes[]
@@ -80,28 +80,29 @@ to display. The ref can specify the full refname when it begins
80
80
with `refs/notes/`; when it begins with `notes/`, `refs/` and otherwise
81
81
`refs/notes/` is prefixed to form the full name of the ref.
82
82
+
83
- Multiple --notes options can be combined to control which notes are
84
- being displayed. Examples: "--notes=foo" will show only notes from
85
- " refs/notes/foo" ; "--notes=foo --notes" will show both notes from
83
+ Multiple ` --notes` options can be combined to control which notes are
84
+ being displayed. Examples: "` --notes=foo` " will show only notes from
85
+ ` refs/notes/foo` ; "` --notes=foo --notes` " will show both notes from
86
86
"refs/notes/foo" and from the default notes ref(s).
87
87
88
- --no-notes::
88
+ ` --no-notes` ::
89
89
Do not show notes. This negates the above `--notes` option, by
90
90
resetting the list of notes refs from which notes are shown.
91
91
Options are parsed in the order given on the command line, so e.g.
92
- "--notes --notes=foo --no-notes --notes=bar" will only show notes
93
- from " refs/notes/bar" .
92
+ "` --notes --notes=foo --no-notes --notes=bar` " will only show notes
93
+ from ` refs/notes/bar` .
94
94
95
- --show-notes-by-default::
95
+ ` --show-notes-by-default` ::
96
96
Show the default notes unless options for displaying specific
97
97
notes are given.
98
98
99
- --show-notes[=<ref>]::
100
- --[no-]standard-notes::
101
- These options are deprecated. Use the above --notes/--no-notes
99
+ `--show-notes[=<ref>]`::
100
+ `--standard-notes`::
101
+ `--no-standard-notes`::
102
+ These options are deprecated. Use the above `--notes`/`--no-notes`
102
103
options instead.
103
104
endif::git-rev-list[]
104
105
105
- --show-signature::
106
+ ` --show-signature` ::
106
107
Check the validity of a signed commit object by passing the signature
107
108
to `gpg --verify` and show the output.
0 commit comments