Skip to content

Commit a4514a4

Browse files
phil-blaingitster
authored andcommitted
blame-options.txt: also mention 'funcname' in '-L' description
Make it clearer that a function can be blamed by feeding `git blame` '-L :<funcname>' by mentioning it at the beginnning of the description of the '-L' option. Also, in 'line-range-options.txt', which is used for git-log(1) and gitk(1), do not parenthesize the mention of the ':<funcname>' mode, to place it on equal footing with the '<start>,<end>' mode. Signed-off-by: Philippe Blain <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fd5c74e commit a4514a4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Documentation/blame-options.txt

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

1212
-L <start>,<end>::
1313
-L :<funcname>::
14-
Annotate only the given line range. May be specified multiple times.
15-
Overlapping ranges are allowed.
14+
Annotate only the line range given by '<start>,<end>',
15+
or by the function name regex '<funcname>'.
16+
May be specified multiple times. Overlapping ranges are allowed.
1617
+
1718
'<start>' and '<end>' are optional. `-L <start>` or `-L <start>,` spans from
1819
'<start>' to end of file. `-L ,<end>` spans from start of file to '<end>'.

Documentation/line-range-options.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
-L<start>,<end>:<file>::
22
-L:<funcname>:<file>::
33

4-
Trace the evolution of the line range given by '<start>,<end>'
5-
(or the function name regex '<funcname>') within the '<file>'. You may
4+
Trace the evolution of the line range given by '<start>,<end>',
5+
or by the function name regex '<funcname>', within the '<file>'. You may
66
not give any pathspec limiters. This is currently limited to
77
a walk starting from a single revision, i.e., you may only
88
give zero or one positive revision arguments, and

0 commit comments

Comments
 (0)