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

Re: [PATCH 2/3] Different views on a repository

From
AGAndreas Gruenbacher <agruen@suse.de>
Date
Feb 26, 2010, 21:35 UTC
Message-ID
<201002262235.43929.agruen@suse.de>
In-Reply-To
<201002260145.33960.agruen@suse.de>
On Friday 26 February 2010 01:45:33 Andreas Gruenbacher wrote:
Show 24 quoted lines
> A combination of the two approaches would be to "link forward" instead of
> "linking back", so that the consolidated view would maintain itself, with a
> server repo setup like this:
> 
> 	/repos/ABC:
> 		objects
> 		refs/tags/A/
> 		refs/tags/B/
> 		refs/heads/A/
> 		refs/heads/B/
> 
> 	/repos/A:
> 		refs/tags -> /repos/ABC/refs/tags/A/
> 		refs/heads -> /repos/ABC/refs/heads/A/
> 		objects -> /repos/ABC/objects/
> 
> 	/repos/B:
> 		refs/tags -> /repos/ABC/refs/tags/B/
> 		refs/heads -> /repos/ABC/refs/heads/B/
> 		objects -> /repos/ABC/objects/
> 
> This could be made safe by not doing garbage collection if objects is a
> symlink instead of a directory.  (The ABC repo could be garbage collected
>  as usual.)  Am I overlooking anything why this can't work?
Self reply: reference packing breaks this kind of setup.  Crap.
Andreas
Previous: Andreas GruenbacherNext: Shawn O. Pearce
Message 12 of 16 in “Different views on a repository”
  1. Andreas GruenbacherFeb 24, 2010
  2. 1/3 receive-pack: Two small code cleanupsAndreas Gruenbacher, Feb 24, 2010
  3. 2/3 Different views on a repositoryAndreas Gruenbacher, Feb 24, 2010
  4. 3/3 Different views on a repository: HEAD mappingAndreas Gruenbacher, Feb 24, 2010
  5. Shawn O. PearceFeb 24, 2010
  6. Michael J GruberFeb 25, 2010
  7. Andreas GruenbacherFeb 25, 2010
  8. Michael J GruberFeb 25, 2010
  9. Andreas GruenbacherFeb 25, 2010
  10. Junio C HamanoFeb 25, 2010
  11. Andreas GruenbacherFeb 26, 2010
  12. Andreas GruenbacherFeb 26, 2010
  13. Shawn O. PearceFeb 24, 2010
  14. James PickensFeb 25, 2010
  15. Adam BrewsterFeb 26, 2010
  16. Andreas GruenbacherFeb 26, 2010

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.