@@ -8,8 +8,8 @@ git-log - Show commit logs
8
8
9
9
SYNOPSIS
10
10
--------
11
- [verse ]
12
- ' git log' [<options >] [<revision-range >] [[-- ] <path >... ]
11
+ [synopsis ]
12
+ git log [<options >] [<revision-range >] [[-- ] <path >... ]
13
13
14
14
DESCRIPTION
15
15
-----------
@@ -27,27 +27,32 @@ each commit introduces are shown.
27
27
OPTIONS
28
28
-------
29
29
30
- -- follow::
30
+ ` --follow` ::
31
31
Continue listing the history of a file beyond renames
32
32
(works only for a single file).
33
33
34
- -- no-decorate::
35
- -- decorate[=short|full|auto|no]::
36
- Print out the ref names of any commits that are shown. If 'short' is
37
- specified, the ref name prefixes 'refs/heads/' , 'refs/tags/' and
38
- 'refs/remotes/' will not be printed. If 'full' is specified, the
39
- full ref name (including prefix) will be printed. If 'auto' is
40
- specified, then if the output is going to a terminal, the ref names
41
- are shown as if 'short' were given, otherwise no ref names are
42
- shown. The option `--decorate` is short-hand for `--decorate=short` .
43
- Default to configuration value of `log.decorate` if configured,
44
- otherwise, `auto` .
45
-
46
- -- decorate-refs=<pattern >::
47
- -- decorate-refs-exclude=<pattern >::
34
+ `--no-decorate` ::
35
+ `--decorate[=(short|full|auto|no)]` ::
36
+ Print out the ref names of any commits that are shown. Possible values
37
+ are:
38
+ +
39
+ ----
40
+ `short` ;; the ref name prefixes `refs/heads/` , `refs/tags/` and
41
+ `refs/remotes/` are not printed.
42
+ `full` ;; the full ref name (including prefix) is printed.
43
+ `auto` :: if the output is going to a terminal, the ref names
44
+ are shown as if `short` were given, otherwise no ref names are
45
+ shown.
46
+ ----
47
+ +
48
+ The option `--decorate` is short-hand for `--decorate=short` . Default to
49
+ configuration value of `log.decorate` if configured, otherwise, `auto` .
50
+
51
+ `--decorate-refs=<pattern>` ::
52
+ `--decorate-refs-exclude=<pattern>` ::
48
53
For each candidate reference, do not use it for decoration if it
49
- matches any patterns given to `--decorate-refs-exclude` or if it
50
- doesn't match any of the patterns given to `--decorate-refs` . The
54
+ matches any of _<pattern>_ given to `--decorate-refs-exclude` or if it
55
+ doesn't match any of _<pattern>_ given to `--decorate-refs` . The
51
56
`log.excludeDecoration` config option allows excluding refs from
52
57
the decorations, but an explicit `--decorate-refs` pattern will
53
58
override a match in `log.excludeDecoration` .
@@ -56,51 +61,51 @@ If none of these options or config settings are given, then references are
56
61
used as decoration if they match `HEAD` , `refs/heads/` , `refs/remotes/` ,
57
62
`refs/stash/` , or `refs/tags/` .
58
63
59
- -- clear-decorations::
64
+ ` --clear-decorations` ::
60
65
When specified, this option clears all previous `--decorate-refs`
61
66
or `--decorate-refs-exclude` options and relaxes the default
62
67
decoration filter to include all references. This option is
63
68
assumed if the config value `log.initialDecorationSet` is set to
64
69
`all` .
65
70
66
- -- source::
71
+ ` --source` ::
67
72
Print out the ref name given on the command line by which each
68
73
commit was reached.
69
74
70
- -- [no-]mailmap::
71
- -- [no-]use-mailmap::
75
+ ` --[no-]mailmap` ::
76
+ ` --[no-]use-mailmap` ::
72
77
Use mailmap file to map author and committer names and email
73
78
addresses to canonical real names and email addresses. See
74
79
linkgit:git-shortlog[1].
75
80
76
- -- full-diff::
81
+ ` --full-diff` ::
77
82
Without this flag, `git log -p <path>...` shows commits that
78
83
touch the specified paths, and diffs about the same specified
79
84
paths. With this, the full diff is shown for commits that touch
80
- the specified paths; this means that "<path >... " limits only
85
+ the specified paths; this means that "` <path>...` " limits only
81
86
commits, and doesn't limit diff for those commits.
82
87
+
83
88
Note that this affects all diff-based output types, e.g. those
84
89
produced by `--stat` , etc.
85
90
86
- -- log-size::
87
- Include a line `` log size <number>'' in the output for each commit,
88
- where <number > is the length of that commit's message in bytes.
91
+ ` --log-size` ::
92
+ Include a line `log size <number>` in the output for each commit,
93
+ where _ <number>_ is the length of that commit's message in bytes.
89
94
Intended to speed up tools that read log messages from `git log`
90
95
output by allowing them to allocate space in advance.
91
96
92
97
include::line-range-options.adoc[]
93
98
94
- <revision-range >::
99
+ _ <revision-range>_ ::
95
100
Show only commits in the specified revision range. When no
96
- <revision-range > is specified, it defaults to `HEAD` (i.e. the
101
+ _ <revision-range>_ is specified, it defaults to `HEAD` (i.e. the
97
102
whole history leading to the current commit). `origin..HEAD`
98
103
specifies all the commits reachable from the current commit
99
104
(i.e. `HEAD` ), but not from `origin` . For a complete list of
100
- ways to spell <revision-range >, see the 'Specifying Ranges'
105
+ ways to spell _ <revision-range>_ , see the 'Specifying Ranges'
101
106
section of linkgit:gitrevisions[7].
102
107
103
- [-- ] <path >... ::
108
+ ` [--] <path>...` ::
104
109
Show only commits that are enough to explain how the files
105
110
that match the specified paths came to be. See 'History
106
111
Simplification' below for details and other simplification
@@ -145,14 +150,14 @@ EXAMPLES
145
150
146
151
`git log --since="2 weeks ago" -- gitk`::
147
152
148
- Show the changes during the last two weeks to the file ' gitk' .
153
+ Show the changes during the last two weeks to the file ` gitk` .
149
154
The `--` is necessary to avoid confusion with the *branch* named
150
- ' gitk'
155
+ ` gitk`
151
156
152
157
`git log --name-status release..test`::
153
158
154
- Show the commits that are in the "test" branch but not yet
155
- in the "release" branch, along with the list of paths
159
+ Show the commits that are in the "` test` " branch but not yet
160
+ in the "` release` " branch, along with the list of paths
156
161
each commit modifies.
157
162
158
163
`git log --follow builtin/rev-list.c`::
@@ -164,7 +169,7 @@ EXAMPLES
164
169
`git log --branches --not --remotes=origin`::
165
170
166
171
Shows all commits that are in any of local branches but not in
167
- any of remote-tracking branches for ' origin' (what you have that
172
+ any of remote-tracking branches for ` origin` (what you have that
168
173
origin doesn't).
169
174
170
175
`git log master --not --remotes=*/master`::
@@ -200,11 +205,11 @@ CONFIGURATION
200
205
See linkgit:git-config[1] for core variables and linkgit:git-diff[1]
201
206
for settings related to diff generation.
202
207
203
- format.pretty::
208
+ ` format.pretty` ::
204
209
Default for the `--format` option. (See 'Pretty Formats' above.)
205
210
Defaults to `medium`.
206
211
207
- i18n.logOutputEncoding::
212
+ ` i18n.logOutputEncoding` ::
208
213
Encoding to use when displaying logs. (See 'Discussion' above.)
209
214
Defaults to the value of `i18n.commitEncoding` if set, and UTF-8
210
215
otherwise.
0 commit comments