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

Re: [RFC/PATCH] Change "refs/" references to symbolic constants

From
Junio C Hamano <junkio@cox.net>
Date
Dec 16, 2006, 21:44 UTC
Message-ID
<7vslffcy80.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200612141644.06167.andyparkins@gmail.com>
Andy Parkins <andyparkins@gmail.com> writes:
> Changed repeated use of the same constants for the ref paths to be
> symbolic constants.

This is not rejected nor forgotten but has not been applied yet, and may not be immediately.

I would love to have this; it would reduce mistakes (spelling "refs/head/" would silently compile fine and result in a broken command, while spelling PATH_REFS_HEAD would be caught by the compiler).

A sad thing is this needs to be done when things are relatively quiescent.

So I would apply this before v1.5.0 (or a replacement, if you have updates), but it might have to wait a bit until I I can say "ok, no big patches to C part is pending right now and it is a good time to do this clean-up".

Previous: Andy ParkinsNext: Andy Parkins
Message 2 of 3 in “Change "refs/" references to symbolic constants”
  1. Change "refs/" references to symbolic constantsAndy Parkins, Dec 14, 2006
  2. Junio C HamanoDec 16, 2006
  3. Andy ParkinsDec 17, 2006

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.