From: Robin Rosenberg Date: Sun, 13 May 2007 20:31:02 GMT Subject: Re: ~ and ^ Message-ID: <200705132231.03180.robin.rosenberg.lists@dewire.com> In-Reply-To: <7v8xbssfti.fsf@assigned-by-dhcp.cox.net> söndag 13 maj 2007 skrev Junio C Hamano: > Sean writes: > > > Would it be possible/reasonable to treat a bare ~3 (or ^) on the git command > > line as equivalent to "~3" ? At least @{3} already works > > this way and it would be nice to do the same for the even more common tilde > > and hat operations. If so, it would be a small convenience to just type: > > "git show ~3" > > Interesting. > > At least, "ls ~0" does not seem to get confused by bash to be > the home directory of the root user, so I do not offhand think > of a reason not to have ~$n as a synonym to HEAD~$n. Would that > be useful? I dunno. ~0 is my current directory in bash. $ echo ~0 /home/me/tmp -- robin