Skip to content

Commit 4ea4eea

Browse files
committed
Documentation/git-log: mention that line-log regex must match in starting revision
When giving a regex as parameter <start> or <end> in `git log -L <start>,<end>:<file>`, or a function name in `git log -L :<funcname>:<file>`, the given regex must match in the starting revision, or else the command exits with a fatal error. This is not obvious in the documentation, so add a note to that effect. Signed-off-by: Philippe Blain <[email protected]>
1 parent 0ed04a8 commit 4ea4eea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/git-log.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ produced by `--stat`, etc.
7676
(or the function name regex <funcname>) within the <file>. You may
7777
not give any pathspec limiters. This is currently limited to
7878
a walk starting from a single revision, i.e., you may only
79-
give zero or one positive revision arguments.
79+
give zero or one positive revision arguments, and any given regex for
80+
<start> or <end> (or <funcname>) must match in the starting revision.
8081
You can specify this option more than once. Implies `--patch`.
8182
If ``:<funcname>'' is given, implies `--function-context`.
8283
Patch output can be suppressed using `-s`, but other diff formats

0 commit comments

Comments
 (0)