Re: [PATCH 1/6] docs: document bundle URI standard
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 21, 2022, 20:16 UTC
- Message-ID
- <xmqq8rpphiwn.fsf@gitster.g>
- In-Reply-To
- <d4427adf-e3ef-a5cd-3016-687004dc5ae3@github.com>
Derrick Stolee <derrickstolee@github.com> writes:
Show 15 quoted lines
>>> The refs/bundles/ appear in the document only here, and it is >>> unclear why we even want it (I am assuming this is against gc while >>> "git clone" is still running) or how we are going to retire it, if >>> ever. If there are multiple bundle files involved in this "git clone", >>> to anchor objects that are necessary against "gc", don't we need to use >>> refs/bundles/<i>/* or something like that, where <i> is uniquely assigned >>> number locally? >> >> The real reason to keep them in refs/bundles/ is because then those >> refs can be used in the incremental 'git fetch' after downloading the >> bundles (in perpetuity) while not stomping refs/heads or refs/remotes/ > > ...I completely ignored your "refs/bundles/<i>/*" suggestion, which is > an interesting way to allow dropping refs from this space, allowing GC > to clear up space over time.
FWIW, I wasn't thinking about GC and expiration. If bundle URI thing can say "you need this, that and that other bundle" and cause you to fetch three bundles, I thought that there needs a way for you to record the tips of these three bundles---these three bundles should not have to compete for refs/bundles/master, for example.