Re: [PATCH] blame: add a range option to -L

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Nieder <jrnieder@xxxxxxxxx> writes:

> Bill Pemberton wrote:
>
>> In addition to + and - you can now use r to specify how many lines
>> around <start> 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.

I am not interested in this patch very much myself, and after thinking
about it, I think my dislike largely comes from this syntax, and not from
the feature itself.  Any non-punctuation letter there looks like a sore
thumb.  Either "-L 20±5" or even "-L 20+/-5" would have looked a _lot_
saner.

>> +++ b/Documentation/blame-options.txt
>> @@ -32,6 +32,12 @@ This is only valid for <end> and will specify a number
>>  of lines before or after the line given by <start>.
>>  +
>>  
>> +- rrange
>
> Maybe -rradius?  “range” sounds like an interval with specified endpoints.

Yes, radius sounds more sensible.  Another alternative would be to call it
"context", as in "grep -C <n>".
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]