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

Re: [PATCH] Do not ignore hidden refs

From
Petr Baudis <pasky@suse.cz>
Date
Nov 19, 2006, 00:48 UTC
Message-ID
<20061119004817.GT7201@pasky.or.cz>
In-Reply-To
<7vmz6o9t3s.fsf@assigned-by-dhcp.cox.net>
On Sun, Nov 19, 2006 at 01:29:27AM CET, Junio C Hamano wrote:
Show 9 quoted lines
> My understanding of your original plan was to use ".foo" as
> a private thing for Cogito to use to implement some cleverness
> when the user talks about the branch "foo" (just like StGIT
> uses "refs/bases/foo" to keep track of its private stuff related
> to user branch "foo").  When the user says "my 'foo' branch",
> you were going to munge that name into ".foo" and use both to
> implement that cleverness (just like StGIT uses "refs/bases/foo"
> in addition to "refs/heads/foo" when the user is talking about
> his branch "foo").
(Not a plan, that's what I do now. ;-)

Yes, that's correct, but it's not what I'm talking about anymore - sorry for the confusion. The proper solution for this is of course to move this around in the refs/ hierarchy out of heads to a more suitable place. I'm going to do that in few moments.

What I'm talking about now are _real_ user-visible and user-created refs, which should however stay local to the repository the user created them in.

Show 8 quoted lines
> I would rather think that it would actively be a bad thing to
> make the core level to consider heads/private/foo and heads/foo
> ambiguous.  When the user says "my 'foo' branch" that should
> mean the "foo" branch not the "private/foo" branch.
> 
> Which certainly suggests that heads/private/, as a user visible
> convention to keep developer-repository private stuff for local
> use, is too verbose.

I don't think the automatic lookup of the branch with private/ prepended is too bad a thing, but if you have a better solution...

Show 9 quoted lines
> StGIT's use of refs/bases (i.e. outside refs/heads) is probably
> sensible because it is not something the end user should
> directly muck with nor check out.  If Porcelains want some
> "special branch" for their own use to do their magic, however,
> the ref cannot be outside refs/heads for it to be pointed at by
> HEAD to become the "current branch" ("bisect" command comes to
> mind, and I suspect "cg-seek" would have similar issues).  But
> that kind of use is all under controll of the Porcelain, and I
> would imagine "too long to type" objection would not apply.

Yes, but what I have on mind are branches the _user_ wants to declare as local.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
The meaning of Stonehenge in Traflamadorian, when viewed from above, is:
"Replacement part being rushed with all possible speed."
Previous: Junio C HamanoNext: Linus Torvalds
Message 12 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.