From: "Zeeshan Ali (Khattak)" <zeeshanak@gnome.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Stefan Näwe" <stefan.naewe@gmail.com>, git@vger.kernel.org
Subject: Re: Support of '^' as alias for 'HEAD^'
Date: Sun, 15 Jul 2012 01:24:18 +0300 [thread overview]
Message-ID: <CAAa3hFMNf_wA22ngypSu379jr31r3L3yAjTkvDUd_L-mVwPJkA@mail.gmail.com> (raw)
In-Reply-To: <7vmx32590u.fsf@alter.siamese.dyndns.org>
On Sun, Jul 15, 2012 at 12:26 AM, Junio C Hamano <gitster@pobox.com> wrote:
> "Zeeshan Ali (Khattak)" <zeeshanak@gnome.org> writes:
>
>> What about '^' and '^^' that I suggested?
>>
>>>> While I see your "~<N>" much distasteful compared to "^", you still
>>>
>>> s/dist/less dist/; sorry ;-)
>>
>> Why?
>
> That "^^" is the most important reason why your "^ is the same as
> HEAD^" is flawed, and goes against my taste.
>
> Think what "log ^^ origin" would mean. Is it "log ^HEAD^ origin"?
> Is it "log HEAD^^ origin"? They mean totally different things.
Sorry for my ignorance here but what does ^ *before* HEAD even mean? I
tried playing with different combinations of ^ and HEAD here (e.g
^HEAD^, ^HEAD^^, ^HEAD^^^) with both log and show commands but git
just silently returns on them. Is this ^ before HEAD actually used
cause I have never seen/heard of that before. Google isn't able to
help either.
> Compared to that, at least ~<n> does not have such ambiguity within
> the context of Git (having to quote is an ambiguity within the
> context of using Git with shells that support dirstacks in their
> tilde expansion).
Don't know whats dirstacks support either but that I guess just means
that bash (the shell I have always used) doesn't do that.
--
Regards,
Zeeshan Ali (Khattak)
FSF member#5124
next prev parent reply other threads:[~2012-07-14 22:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-14 0:39 Support of '^' as alias for 'HEAD^' Zeeshan Ali (Khattak)
2012-07-14 9:48 ` Stefan Näwe
2012-07-14 20:17 ` Junio C Hamano
2012-07-14 20:34 ` Junio C Hamano
2012-07-14 20:49 ` Zeeshan Ali (Khattak)
2012-07-14 21:26 ` Junio C Hamano
2012-07-14 22:24 ` Zeeshan Ali (Khattak) [this message]
2012-07-15 7:44 ` Jeff King
2012-07-15 17:45 ` Holger Hellmuth
2012-07-15 21:48 ` Zeeshan Ali (Khattak)
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=CAAa3hFMNf_wA22ngypSu379jr31r3L3yAjTkvDUd_L-mVwPJkA@mail.gmail.com \
--to=zeeshanak@gnome.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=stefan.naewe@gmail.com \
/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).