From: Jonathan Nieder Date: Sun, 02 May 2010 09:14:34 GMT Subject: Re: [PATCH] blame: add a range option to -L Message-ID: <20100502091433.GA1854@progeny.tock> In-Reply-To: <1272662989-563-1-git-send-email-wfp5p@virginia.edu> Bill Pemberton wrote: > In addition to + and - you can now use r to specify how many lines > around that you want to see. For example: -L 20,r5 would show > lines 15 through 25 From too much exposure to subversion, the r suggests “revision”. But ± is too hard to type, so I guess r will have to do. > +++ b/Documentation/blame-options.txt > @@ -32,6 +32,12 @@ This is only valid for and will specify a number > of lines before or after the line given by . > + > > +- rrange Maybe -rradius? “range” sounds like an interval with specified endpoints. > + /* if top is negative then top is actually a range > + that was specified with the r option */ > + if (*top < 1) { > + long x = *top; > + *top = *bottom - x; > + *bottom += x; > + if (*bottom < 1) > + *bottom = 1; > + } How does this treat -L 5,-10? Jonathan