13b8f68c1f
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> |
||
---|---|---|
.. | ||
expect.beginning-of-file | ||
expect.end-of-file | ||
expect.move-support-f | ||
expect.simple-f | ||
expect.simple-f-to-main | ||
expect.simple-main | ||
expect.simple-main-to-end | ||
expect.two-ranges | ||
expect.vanishes-early | ||
history.export |