From: Jean-Noël Avila Date: Mon, 7 Jul 2025 18:53:27 +0000 (+0000) Subject: doc: git-log: convert line range format to new doc format X-Git-Tag: v2.51.0-rc0~51^2~5 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=204f7308949cf60795ee26231a48e6df2f80fcfd;p=thirdparty%2Fgit.git doc: git-log: convert line range format to new doc format - Use __ instead of in the description - Use `backticks` for keywords and more complex option descriptions. The new rendering engine will apply synopsis rules to these spans. Signed-off-by: Jean-Noël Avila Signed-off-by: Junio C Hamano --- diff --git a/Documentation/line-range-format.adoc b/Documentation/line-range-format.adoc index 9b51e9fb66..3cc2a14544 100644 --- a/Documentation/line-range-format.adoc +++ b/Documentation/line-range-format.adoc @@ -1,30 +1,30 @@ -'' and '' can take one of these forms: +__ and __ can take one of these forms: -- number +- __ + -If '' or '' is a number, it specifies an +If __ or __ is a number, it specifies an absolute line number (lines count from 1). + -- `/regex/` +- `//` + This form will use the first line matching the given -POSIX regex. If '' is a regex, it will search from the end of +POSIX __. If __ is a regex, it will search from the end of the previous `-L` range, if any, otherwise from the start of file. -If '' is `^/regex/`, it will search from the start of file. -If '' is a regex, it will search -starting at the line given by ''. +If __ is `^//`, it will search from the start of file. +If __ is a regex, it will search starting at the line given by +__. + -- +offset or -offset +- `+` or `-` + -This is only valid for '' and will specify a number -of lines before or after the line given by ''. +This is only valid for __ and will specify a number +of lines before or after the line given by __. + -If `:` is given in place of '' and '', it is a +If `:` is given in place of __ and __, it is a regular expression that denotes the range from the first funcname line -that matches '', up to the next funcname line. `:` +that matches __, up to the next funcname line. `:` searches from the end of the previous `-L` range, if any, otherwise from the start of file. `^:` searches from the start of file. The function names are determined in the same way as `git diff`