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

Re: [PATCH] Cogito: Support for implicit remote branches in cloned repositories

From
Junio C Hamano <junkio@cox.net>
Date
Nov 4, 2005, 21:50 UTC
Message-ID
<7voe50rskh.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051104210820.GM1431@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
> I still believe we need the notion of private tags which shouldn't be
> cloned.

I agree with you violently. I just do not know what is the right convention to tell which is private and which is not.

Fetching used to be a different matter, because we did not do 'git-fetch --tags' for a reason: you do not have any business with my tags unless I tell you about them. But now we tell others about what tags we have, so...

> All right. git-update-server-info ignores hidden refs, but referencing a
> hidden ref works all right (unsurprisingly). So let's just codify that
> private tags which shan't be fetched (unless requested explicitly) start
> with a dot (/^\./) and we are all set...?

Except that I suspect refs.c::check_ref_format() will barf on it instead of ignoring it, and obviously you would want it to do two different things depending on what kind of operation you are doing. You for example would want to change git-branch or git-tag not to refuse creating such "private" tag. You would still want git-upload-pack to show it to the other end, for better common commit computation purposes, especially if the tag is of lightweight kind, but would want git-clone to ignore them. It should be doable but we first need a plan.

Previous: Petr BaudisNext: Linus Torvalds
Message 5 of 10 in “Cogito: Support for implicit remote branches in cloned repositories”
  1. Cogito: Support for implicit remote branches in cloned repositoriesJosef Weidendorfer, Nov 4, 2005
  2. Junio C HamanoNov 4, 2005
  3. Josef WeidendorferNov 4, 2005
  4. Petr BaudisNov 4, 2005
  5. Junio C HamanoNov 4, 2005
  6. Linus TorvaldsNov 4, 2005
  7. Junio C HamanoNov 6, 2005
  8. Petr BaudisNov 7, 2005
  9. Junio C HamanoNov 7, 2005
  10. Josef WeidendorferNov 8, 2005

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.