Skip to content

Commit b1524ee

Browse files
madduckspearce
authored andcommitted
Improve git-log documentation wrt file filters
The need for "--" in the git-log synopsis was previously unclear and confusing. This patch makes it a little clearer. Thanks to hyy <[email protected]> for his help. [sp: Changed -- to \-- per prior commit e1ccf53.] Signed-off-by: martin f. krafft <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 5d6b3a9 commit b1524ee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Documentation/git-log.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-log - Show commit logs
88

99
SYNOPSIS
1010
--------
11-
'git log' <option>...
11+
'git log' [<options>] [<since>..<until>] [[\--] <path>...]
1212

1313
DESCRIPTION
1414
-----------
@@ -57,8 +57,11 @@ include::diff-options.txt[]
5757
Note that only message is considered, if also a diff is shown
5858
its size is not included.
5959

60-
<path>...::
61-
Show only commits that affect any of the specified paths.
60+
[\--] <path>...::
61+
Show only commits that affect any of the specified paths. To
62+
prevent confusion with options and branch names, paths may need
63+
to be prefixed with "\-- " to separate them from options or
64+
refnames.
6265

6366

6467
include::rev-list-options.txt[]

0 commit comments

Comments
 (0)