git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
ZKZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Date
Jul 15, 2012, 21:48 UTC
Message-ID
<CAAa3hFOEtx7d8QzCyBLJEw7kjEb0oPaT=EnFiY3DdApnkHt+hg@mail.gmail.com>
In-Reply-To
<500301BF.9080505@ira.uka.de>
On Sun, Jul 15, 2012 at 8:45 PM, Holger Hellmuth <hellmuth@ira.uka.de> wrote:
Show 18 quoted lines
> 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.

Thanks, was hoping to have something thats supported out of the box in future git but I guess I can settle for a local hack too. :)

-- 
Regards,

Zeeshan Ali (Khattak)
FSF member#5124
Previous: Holger Hellmuth
Message 10 of 10 in “Support of '^' as alias for 'HEAD^'”
  1. Zeeshan Ali (Khattak)Jul 14, 2012
  2. Stefan NäweJul 14, 2012
  3. Junio C HamanoJul 14, 2012
  4. Junio C HamanoJul 14, 2012
  5. Zeeshan Ali (Khattak)Jul 14, 2012
  6. Junio C HamanoJul 14, 2012
  7. Zeeshan Ali (Khattak)Jul 14, 2012
  8. Jeff KingJul 15, 2012
  9. Holger HellmuthJul 15, 2012
  10. Zeeshan Ali (Khattak)Jul 15, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.