Re: [PATCH v7 2/5] blame: introduce $ as "end of file" in -L syntax
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 7, 2012, 17:23 UTC
- Message-ID
- <7vwr3jhw8z.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <d9e1235303c949849b9acfa37fc9e9a780d93873.1339063659.git.trast@student.ethz.ch>
Thomas Rast <trast@student.ethz.ch> 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.