From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Fleischer Subject: [PATCH v3 1/4] Document the semantics of hideRefs with namespaces Date: Thu, 5 Nov 2015 07:07:28 +0100 Message-ID: <1446703651-9049-2-git-send-email-lfleischer@lfos.de> References: <1446703651-9049-1-git-send-email-lfleischer@lfos.de> Cc: Junio C Hamano , Jeff King , Eric Sunshine To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Thu Nov 05 07:08:04 2015 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZuDiN-00030K-CT for gcvg-git-2@plane.gmane.org; Thu, 05 Nov 2015 07:08:03 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756511AbbKEGH5 (ORCPT ); Thu, 5 Nov 2015 01:07:57 -0500 Received: from elnino.cryptocrack.de ([46.165.227.75]:43646 "EHLO elnino.cryptocrack.de" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752805AbbKEGH4 (ORCPT ); Thu, 5 Nov 2015 01:07:56 -0500 Received: by elnino.cryptocrack.de (OpenSMTPD) with ESMTPSA id 5b99e8d3; TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Thu, 5 Nov 2015 07:07:33 +0100 (CET) X-Mailer: git-send-email 2.6.2 In-Reply-To: <1446703651-9049-1-git-send-email-lfleischer@lfos.de> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Right now, there is no clear definition of how transfer.hideRefs should behave when a namespace is set. Explain that hideRefs prefixes match stripped names in that case. This is how hideRefs patterns are currently handled in receive-pack. Signed-off-by: Lukas Fleischer --- Documentation/config.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/config.txt b/Documentation/config.txt index 1204072..74a81e0 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -2684,6 +2684,14 @@ You may also include a `!` in front of the ref name to negate the entry, explicitly exposing it, even if an earlier entry marked it as hidden. If you have multiple hideRefs values, later entries override earlier ones (and entries in more-specific config files override less-specific ones). ++ +If a namespace is set, the namespace prefix is stripped from each reference +before references are matched against hideRefs patterns. For example, if the +prefix `refs/heads/master` is specified in `transfer.hideRefs` and the current +namespace is `foo`, then `refs/namespaces/foo/refs/heads/master` is omitted +from the advertisements but `refs/heads/master` and +`refs/namespaces/bar/refs/heads/master` are still advertised as so-called +"have" lines. transfer.unpackLimit:: When `fetch.unpackLimit` or `receive.unpackLimit` are -- 2.6.2