Re: [PATCH 0/2] Hiding some refs in ls-remote
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jan 21, 2013, 01:46 UTC
- Message-ID
- <CACsJy8AunW_qWEimNhdgzw9xzgs4T+uBZm8o51Kfur0e9pv+HA@mail.gmail.com>
- In-Reply-To
- <7v38xxnfv3.fsf@alter.siamese.dyndns.org>
On Sun, Jan 20, 2013 at 2:16 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 15 quoted lines
> Duy Nguyen <pclouds@gmail.com> writes: > >> Should the client side learn how to list hidden refs too? I'm thinking >> of an extreme case where upload-pack advertises nothing (or maybe just >> refs/heads/master) and it's up to the client to ask for the ref >> selection it's interested in. upload-pack may need more updates to do >> that, I think. > > What you are talking about is a different goal. > > Look at this as a mechanism for the repository owner to control the > clutter in what is shown to the intended audience of what s/he > publishes in the repository. Network bandwidth reduction of > advertisement is a side effect of clutter reduction, and not > necessarily the primary goal.
Probably stupid question: does gitnamespaces.txt attempt to achieve the same? The document says smart http supports passing namespace, nothing about git protocol so I guess we need some extension in upload-pack (or git-daemon) for specifying namespace over git protocol.
-- Duy