Re: Support of '^' as alias for 'HEAD^'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Zeeshan Ali (Khattak)" <zeeshanak@xxxxxxxxx> 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.

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).
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]