From: Matthieu Moy Date: Sun, 01 May 2011 21:21:43 GMT Subject: Re: [RFC/largely untested/PATCH] sha1_name: interpret ~n as HEAD~n Message-ID: In-Reply-To: <7vfwoys20u.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > "Michael J Gruber" 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/