]> git.scripts.mit.edu Git - git.git/blob - Documentation/line-range-format.txt
repack: make parsed string options const-correct
[git.git] / Documentation / line-range-format.txt
1 - number
2 +
3 If <start> or <end> is a number, it specifies an
4 absolute line number (lines count from 1).
5 +
6
7 - /regex/
8 +
9 This form will use the first line matching the given
10 POSIX regex.  If <end> is a regex, it will search
11 starting at the line given by <start>.
12 +
13
14 - +offset or -offset
15 +
16 This is only valid for <end> and will specify a number
17 of lines before or after the line given by <start>.
18 +
19
20 - :regex
21 +
22 If the option's argument is of the form :regex, it denotes the range
23 from the first funcname line that matches <regex>, up to the next
24 funcname line.
25 +