summaryrefslogtreecommitdiff
path: root/Documentation/line-range-format.txt
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2013-03-28 16:47:33 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-03-28 17:30:04 (GMT)
commit13b8f68c1f0b6d4ff5a7bed5a834e7e5e34a9fd0 (patch)
tree8e28bd102d82587678bb9ab32345f26039bf0ad4 /Documentation/line-range-format.txt
parent12da1d1f6ffcd546a892a33302bb34fd37169022 (diff)
downloadgit-13b8f68c1f0b6d4ff5a7bed5a834e7e5e34a9fd0.zip
git-13b8f68c1f0b6d4ff5a7bed5a834e7e5e34a9fd0.tar.gz
git-13b8f68c1f0b6d4ff5a7bed5a834e7e5e34a9fd0.tar.bz2
log -L: :pattern:file syntax to find by funcname
This new syntax finds a funcname matching /pattern/, and then takes from there up to (but not including) the next funcname. So you can say git log -L:main:main.c and it will dig up the main() function and show its line-log, provided there are no other funcnames matching 'main'. Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/line-range-format.txt')
-rw-r--r--Documentation/line-range-format.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/line-range-format.txt b/Documentation/line-range-format.txt
index 265bc23..3e7ce72 100644
--- a/Documentation/line-range-format.txt
+++ b/Documentation/line-range-format.txt
@@ -16,3 +16,10 @@ starting at the line given by <start>.
This is only valid for <end> and will specify a number
of lines before or after the line given by <start>.
+
+
+- :regex
++
+If the option's argument is of the form :regex, it denotes the range
+from the first funcname line that matches <regex>, up to the next
+funcname line.
++