Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Thomas Rast <hidden>
Date: 2016-06-15 22:54:00

Junio C Hamano [off-list ref] writes:
Thomas Rast [off-list ref] writes:
quoted
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.
Heh.  That's actually a very good point; I think neither Bo nor me have
thought about allowing git log -L <begin>:<file>.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help