Skip to content

Commit 90a0f1b

Browse files
committed
Merge branch 'eb/doc-log-manpage'
* eb/doc-log-manpage: Reorganize `git-log' man page to clarify common diff options.
2 parents a7d7853 + 4ded691 commit 90a0f1b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Documentation/git-log.txt

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ each commit introduces are shown.
2323
OPTIONS
2424
-------
2525

26-
:git-log: 1
27-
include::diff-options.txt[]
28-
2926
-<n>::
3027
Limits the number of commits to show.
3128

@@ -36,6 +33,10 @@ include::diff-options.txt[]
3633
For a more complete list of ways to spell <since>
3734
and <until>, see linkgit:gitrevisions[1].
3835

36+
--follow::
37+
Continue listing the history of a file beyond renames
38+
(works only for a single file).
39+
3940
--no-decorate::
4041
--decorate[=short|full|no]::
4142
Print out the ref names of any commits that are shown. If 'short' is
@@ -55,9 +56,6 @@ include::diff-options.txt[]
5556
the specified paths; this means that "<path>..." limits only
5657
commits, and doesn't limit diff for those commits.
5758

58-
--follow::
59-
Continue listing the history of a file beyond renames/copies.
60-
6159
--log-size::
6260
Before the log message print out its size in bytes. Intended
6361
mainly for porcelain tools consumption. If git is unable to
@@ -71,6 +69,11 @@ include::diff-options.txt[]
7169
to be prefixed with "\-- " to separate them from options or
7270
refnames.
7371

72+
Common diff options
73+
~~~~~~~~~~~~~~~~~~~
74+
75+
:git-log: 1
76+
include::diff-options.txt[]
7477

7578
include::rev-list-options.txt[]
7679

0 commit comments

Comments
 (0)