Re: [PATCH v7 2/5] blame: introduce $ as "end of file" in -L syntax

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

 



Thomas Rast <trast@xxxxxxxxxxxxxxx> writes:

> To save the user a lookup of the last line number, introduce $ as a
> shorthand for the last line.  This is mostly useful to spell "until
> the end of the file" as '-L<begin>,$'.

Hmph.  This is mostly useful not to error out when user (perhaps
mistakenly) expects that the end of file is spelled as "$"; both
"git blame -L<begin>" and "git blame L<begin>," have always meant
"til the end", IIRC.

Because I do not offhand think of other & better uses of "$" as a
special case that conflicts with "the end of file", I do not think
it is a bad patch that needs to be rejected, though.
--
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]