Code

Reorganize `git-log' man page to clarify common diff options.
[git.git] / Documentation / git-log.txt
index 0e6ff3182347c03a9ae9c3992fd1e8a6db2867f9..c925d3675af78e0bce7840a8fef28567d72e4695 100644 (file)
@@ -23,9 +23,6 @@ each commit introduces are shown.
 OPTIONS
 -------
 
-:git-log: 1
-include::diff-options.txt[]
-
 -<n>::
        Limits the number of commits to show.
 
@@ -37,6 +34,10 @@ include::diff-options.txt[]
        and <until>, see "SPECIFYING REVISIONS" section in
        linkgit:git-rev-parse[1].
 
+--follow::
+       Continue listing the history of a file beyond renames
+       (works only for a single file).
+
 --no-decorate::
 --decorate[=short|full|no]::
        Print out the ref names of any commits that are shown. If 'short' is
@@ -56,9 +57,6 @@ include::diff-options.txt[]
        the specified paths; this means that "<path>..." limits only
        commits, and doesn't limit diff for those commits.
 
---follow::
-       Continue listing the history of a file beyond renames/copies.
-
 --log-size::
        Before the log message print out its size in bytes. Intended
        mainly for porcelain tools consumption. If git is unable to
@@ -72,6 +70,11 @@ include::diff-options.txt[]
        to be prefixed with "\-- " to separate them from options or
        refnames.
 
+Common diff options
+~~~~~~~~~~~~~~~~~~~
+
+:git-log: 1
+include::diff-options.txt[]
 
 include::rev-list-options.txt[]