Re: [PATCH 2/3] Different views on a repository
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