From 4a345d261b8ece27011e571baf6dcfd0ab6921fb Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Thu, 9 Nov 2006 18:45:32 +0000 Subject: [PATCH] Autogenerated HTML docs for v1.4.4-rc1-g18d54 --- git-blame.html | 13 ++++++++----- git-blame.txt | 11 +++++++---- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/git-blame.html b/git-blame.html index 7ab2937e4..75cd35590 100644 --- a/git-blame.html +++ b/git-blame.html @@ -312,10 +312,7 @@ ea4c7f9bf69e781dd0cd88d2bccb2bf5cc15c9a7 git-blame: Make the output

- Annotate only the specified line range (lines count from - 1). The range can be specified with a regexp. For - example, -L /sub esc_html /,/}$/ limits the - annotation only to the body of esc_html subroutine. + Annotate only the specified line range (lines count from 1).

@@ -469,6 +466,12 @@ ll. 40-60 for file foo, you can use -L option like this:

git blame -L 40,60 foo
+

Also you can use regular expression to specify the line range.

+
+
+
git blame -L '/^sub hello {/,/^}$/' foo
+
+

would limit the annotation to the body of hello subroutine.

When you are not interested in changes older than the version v2.6.18, or changes older than 3 weeks, you can use revision range specifiers similar to git-rev-list:

@@ -512,7 +515,7 @@ parents, using commit^! notation:

diff --git a/git-blame.txt b/git-blame.txt index ff54d29d7..bdfc66692 100644 --- a/git-blame.txt +++ b/git-blame.txt @@ -41,10 +41,7 @@ OPTIONS Use the same output mode as gitlink:git-annotate[1] (Default: off). -L n,m:: - Annotate only the specified line range (lines count from - 1). The range can be specified with a regexp. For - example, `-L '/^sub esc_html /,/^}$/'` limits the - annotation only to the body of `esc_html` subroutine. + Annotate only the specified line range (lines count from 1). -l, --long:: Show long rev (Default: off). @@ -125,6 +122,12 @@ ll. 40-60 for file `foo`, you can use `-L` option like this: git blame -L 40,60 foo +Also you can use regular expression to specify the line range. + + git blame -L '/^sub hello {/,/^}$/' foo + +would limit the annotation to the body of `hello` subroutine. + When you are not interested in changes older than the version v2.6.18, or changes older than 3 weeks, you can use revision range specifiers similar to `git-rev-list`: -- 2.26.2