Re: Support of '^' as alias for 'HEAD^'
- From
- Holger Hellmuth <hellmuth@ira.uka.de>
- Date
- Jul 15, 2012, 17:45 UTC
- Message-ID
- <500301BF.9080505@ira.uka.de>
- In-Reply-To
- <CAAa3hFMNf_wA22ngypSu379jr31r3L3yAjTkvDUd_L-mVwPJkA@mail.gmail.com>
Am 15.07.2012 00:24, schrieb Zeeshan Ali (Khattak):
> 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?
If you want a shortcut, you might try this:
echo "ref: HEAD" > .git/h
Then you can use 'h' instead of 'HEAD'.
Tested it and it seemed to work. If not someone on this list surely will correct me.