git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Rosenberg <robin.rosenberg.lists@dewire.com>
To: Junio C Hamano <junkio@cox.net>
Cc: Sean <seanlkml@sympatico.ca>, git@vger.kernel.org
Subject: Re: ~ and ^
Date: Sun, 13 May 2007 22:31:02 +0200	[thread overview]
Message-ID: <200705132231.03180.robin.rosenberg.lists@dewire.com> (raw)
In-Reply-To: <7v8xbssfti.fsf@assigned-by-dhcp.cox.net>

söndag 13 maj 2007 skrev Junio C Hamano:
> Sean <seanlkml@sympatico.ca> writes:
> 
> > Would it be possible/reasonable to treat a bare ~3 (or ^) on the git command
> > line as equivalent to "<current branch>~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

      parent reply	other threads:[~2007-05-13 20:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-13 18:44 ~ and ^ Sean
2007-05-13 19:07 ` Junio C Hamano
2007-05-13 19:13   ` Karl Hasselström
2007-05-13 19:49     ` Sean
2007-05-13 19:17   ` Sean
2007-05-13 20:31   ` Robin Rosenberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200705132231.03180.robin.rosenberg.lists@dewire.com \
    --to=robin.rosenberg.lists@dewire.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=seanlkml@sympatico.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).