summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a96b32)
raw | patch | inline | side by side (parent: 6a96b32)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 9 Nov 2006 18:44:56 +0000 (10:44 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 9 Nov 2006 18:44:56 +0000 (10:44 -0800) |
This moves the example to specify a line range with regexps to
a later part of the manual page that has similar examples.
Signed-off-by: Junio C Hamano <junkio@cox.net>
a later part of the manual page that has similar examples.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-blame.txt | patch | blob | history |
index ff54d29d70311643a9e9f03b2e384d7fa0a5baa0..bdfc6669285dc895a69fc0037246810bfa979de5 100644 (file)
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).
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`: