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

Re: [PATCH] Do not ignore hidden refs

From
Junio C Hamano <junkio@cox.net>
Date
Nov 18, 2006, 20:05 UTC
Message-ID
<7vy7q8bjwn.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vejs0cz5s.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 7 quoted lines
>> What about leading underscore?
>
> I would rather prefer to do refs/{heads,private}/ and allow
> checkout to treat either of them as branches.  We are talking
> about allowing checkout to go to a non-branch by storing a raw
> commit object name in HEAD instead of leaving it as a symref, so
> we know we are going to touch that area already.

Oops. Consider this rescinded. I myself already talked about "not necessarily just public vs private". Silly me.

I think this is related to the common gripe of "why can't Junio mark pu to be rewinded in his public repository". We should be able to leave the branch grouping to users.

Not just public vs private, but I can see an organization that uses something like this:

    heads/1.5/{maint,master,next,pu} are to maintain and advance 1.5 series
    heads/1.5/topics/{foo,bar} are topics applicable to 1.5
    heads/2.0/{maint,master,next,pu} are to maintain and advance 2.0 series
    heads/2.0/topics/{foo,bar} are topics applicable only to 2.0
    heads/topics/{frotz,nitfol} are topics applicable to both

and wanting to view all the topics, only things related to 1.5, etc. So Porcelains _can_ enforce their own policies to arrange things differently but we should also be able to let the users (and project branch naming policy) to do what we've been talking about by saying:

	use heads/private/ for your own stuff.  And have
	configuration that says "heads/private/" are private
	branches that are not subject to default
	pushing/pulling.

The real instruction from the project would say what the syntax for telling that to git but I think you got the idea...

Previous: Petr BaudisNext: Petr Baudis
Message 9 of 14 in “Do not ignore hidden refs”
  1. Do not ignore hidden refsPetr Baudis, Nov 18, 2006
  2. Junio C HamanoNov 18, 2006
  3. Petr BaudisNov 18, 2006
  4. Junio C HamanoNov 18, 2006
  5. Shawn PearceNov 18, 2006
  6. Petr BaudisNov 18, 2006
  7. Junio C HamanoNov 18, 2006
  8. Petr BaudisNov 18, 2006
  9. Junio C HamanoNov 18, 2006
  10. Petr BaudisNov 18, 2006
  11. Junio C HamanoNov 19, 2006
  12. Petr BaudisNov 19, 2006
  13. Linus TorvaldsNov 18, 2006
  14. Junio C HamanoNov 18, 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.