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

Re: [PATCH] Replace perl code with pure shell code

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 29, 2007, 09:28 UTC
Message-ID
<20070129092815.GA22486@spearce.org>
In-Reply-To
<45BDBBCA.6030107@fs.ei.tum.de>
Simon 'corecode' Schubert <corecode@fs.ei.tum.de> wrote:
> I already wondered.  What's those ^{} tags, and why is CLONE_HEAD littered 
> with them?
They are the deref of the thing without them.
As in, "foo" is a tag pointing at some object (probably a commit
but not necessarily) then "foo^{}" is whatever "foo"'s tag points at.
 
> +		case "$name" in
> +		*^{*)
> +			continue ;;
Probably could just be:
		case "$name" in
		*^{})
			continue ;;

This is common in Git. ^{} on the end of a ref name shows up in the peek-remote/ls-remote output, but certainly is *not* a ref.

Sorry I missed that case eariler when I reviewed the patch. I thought about it and why it wasn't handled here, but then thought maybe it wasn't actually occuring in the input (that someone else higher up had filtered them out).

-- 
Shawn.
Previous: Simon 'corecode' SchubertNext: Randal L. Schwartz
Message 4 of 12 in “Replace perl code with pure shell code”
  1. Replace perl code with pure shell codeSimon 'corecode' Schubert, Jan 29, 2007
  2. Junio C HamanoJan 29, 2007
  3. Replace perl code with pure shell codeSimon 'corecode' Schubert, Jan 29, 2007
  4. Shawn O. PearceJan 29, 2007
  5. Randal L. SchwartzJan 29, 2007
  6. Nikolai WeibullJan 29, 2007
  7. Randal L. SchwartzJan 29, 2007
  8. Nikolai WeibullJan 29, 2007
  9. Randal L. SchwartzJan 29, 2007
  10. Junio C HamanoJan 30, 2007
  11. Jakub NarebskiJan 29, 2007
  12. Randal L. SchwartzJan 29, 2007

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.