Skip to content

Commit fd8d07e

Browse files
ericvwgitster
authored andcommitted
log: Update log.follow doc and add to config.txt
Documentation/config.txt does not include the documentation for log.follow that is in Documentation/git-log.txt. This commit adds the log.follow documentation to config.txt and also updates the wording to be consistent with the format that is followed by other boolean configuration variables. Signed-off-by: Eric N. Vander Weele <[email protected]> Acked-by: David Turner <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 076c983 commit fd8d07e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Documentation/config.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1792,6 +1792,12 @@ log.decorate::
17921792
specified, the full ref name (including prefix) will be printed.
17931793
This is the same as the log commands '--decorate' option.
17941794

1795+
log.follow::
1796+
If `true`, `git log` will act as if the `--follow` option was used when
1797+
a single <path> is given. This has the same limitations as `--follow`,
1798+
i.e. it cannot be used to follow multiple files and does not work well
1799+
on non-linear history.
1800+
17951801
log.showRoot::
17961802
If true, the initial commit will be shown as a big creation event.
17971803
This is equivalent to a diff against an empty tree.

Documentation/git-log.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ log.date::
185185
dates like `Sat May 8 19:35:34 2010 -0500`.
186186

187187
log.follow::
188-
If a single <path> is given to git log, it will act as
189-
if the `--follow` option was also used. This has the same
190-
limitations as `--follow`, i.e. it cannot be used to follow
191-
multiple files and does not work well on non-linear history.
188+
If `true`, `git log` will act as if the `--follow` option was used when
189+
a single <path> is given. This has the same limitations as `--follow`,
190+
i.e. it cannot be used to follow multiple files and does not work well
191+
on non-linear history.
192192

193193
log.showRoot::
194194
If `false`, `git log` and related commands will not treat the

0 commit comments

Comments
 (0)