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)
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>
No differences found