Code

git-pickaxe: allow "-L <something>,+N"
authorJunio C Hamano <junkio@cox.net>
Wed, 8 Nov 2006 00:20:02 +0000 (16:20 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 8 Nov 2006 00:24:37 +0000 (16:24 -0800)
commit7bd9641df5b7cca91b21bfdc587962c59700786c
tree9d42e451612128d106190453e1b8250a21b4100b
parent931233bc666b40de039d50f82f12279c94e5e5f0
git-pickaxe: allow "-L <something>,+N"

With this,

git pickaxe -L '/--progress/,+20' v1.4.0 -- pack-objects.c

gives you 20 lines starting from the first occurrence of
'--progress' in pack-objects, digging from v1.4.0 version.

You can also say

git pickaxe -L '/--progress/,-5' v1.4.0 -- pack-objects.c

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