Re: [RFC/largely untested/PATCH] sha1_name: interpret ~n as HEAD~n
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- May 1, 2011, 21:21 UTC
- Message-ID
- <vpqsjsy15i0.fsf@bauges.imag.fr>
- In-Reply-To
- <7vfwoys20u.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> "Michael J Gruber" <git@drmicha.warpmail.net> writes: > >> I meant "rebase -i", sorry. And in fact I mostly mean those cases where >> I want to "amend" a commit which is not the top most one. > > I also see myself getting tempted to say "rebase -i -2" every once in a > while; it seems to go well with "log -2" especially when the history is > linear.
I like that. As easy to type (or more, depending on the keyboard) as ~2, but no nasty interaction with the shell. OTOH, that would be a special-case for rebase only (i.e. doesn't make "git show HEAD~2" easier to type), but that's the most common case.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/