]> git.ipfire.org Git - thirdparty/git.git/commit - line-range.c
log -L: :pattern:file syntax to find by funcname
authorThomas Rast <trast@student.ethz.ch>
Thu, 28 Mar 2013 16:47:33 +0000 (17:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Mar 2013 17:30:04 +0000 (10:30 -0700)
commit13b8f68c1f0b6d4ff5a7bed5a834e7e5e34a9fd0
tree8e28bd102d82587678bb9ab32345f26039bf0ad4
parent12da1d1f6ffcd546a892a33302bb34fd37169022
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>
Documentation/blame-options.txt
Documentation/git-blame.txt
Documentation/git-log.txt
Documentation/line-range-format.txt
builtin/blame.c
line-log.c
line-range.c
line-range.h
t/t4211-line-log.sh
t/t4211/expect.simple-f-to-main [new file with mode: 0644]
t/t4211/expect.simple-main-to-end [new file with mode: 0644]