git-pickaxe: -L /regexp/,/regexp/
authorJunio C Hamano <junkio@cox.net>
Tue, 7 Nov 2006 01:08:32 +0000 (17:08 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 7 Nov 2006 06:09:44 +0000 (22:09 -0800)
commit931233bc666b40de039d50f82f12279c94e5e5f0
treea301916d37af2b306d2175428a069cf0237f0c6f
parentc2e525d97f81bc178567cdf4dd7056ce6224eb58
git-pickaxe: -L /regexp/,/regexp/

With this change, you can specify the beginning and the ending
line of the range you wish to inspect with pattern matching.

For example, these are equivalent with the git.git sources:

    git pickaxe -L 7,21                       v1.4.0 -- commit.c
    git pickaxe -L '/^struct sort_node/,/^}/' v1.4.0 -- commit.c
    git pickaxe -L '7,/^}/'                   v1.4.0 -- commit.c
    git pickaxe -L '/^struct sort_node/,21'   v1.4.0 -- commit.c

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pickaxe.c