Skip to content

Commit df83d5c

Browse files
sunshinecogitster
authored andcommitted
blame-options.txt: explain that -L <start> and <end> are optional
The ability to omit either end of the -L range is a handy but undocumented shortcut, and is thus not easily discovered. Fix this shortcoming. Signed-off-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e6d2b9f commit df83d5c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Documentation/blame-options.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111

1212
-L <start>,<end>::
1313
-L :<regex>::
14-
Annotate only the given line range. <start> and <end> can take
15-
one of these forms:
14+
Annotate only the given line range. <start> and <end> are optional.
15+
``-L <start>'' or ``-L <start>,'' spans from <start> to end of file.
16+
``-L ,<end>'' spans from start of file to <end>.
17+
+
18+
<start> and <end> can take one of these forms:
1619

1720
include::line-range-format.txt[]
1821

0 commit comments

Comments
 (0)