From: Lukas Fleischer <lfleischer@lfos.de>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>, Jeff King <peff@peff.net>,
Eric Sunshine <sunshine@sunshineco.com>
Subject: [PATCH v3 1/4] Document the semantics of hideRefs with namespaces
Date: Thu, 5 Nov 2015 07:07:28 +0100 [thread overview]
Message-ID: <1446703651-9049-2-git-send-email-lfleischer@lfos.de> (raw)
In-Reply-To: <1446703651-9049-1-git-send-email-lfleischer@lfos.de>
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 <lfleischer@lfos.de>
---
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
next prev parent reply other threads:[~2015-11-05 6:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-05 6:07 [PATCH v3 0/4] Improve hideRefs when used with namespaces Lukas Fleischer
2015-11-05 6:07 ` Lukas Fleischer [this message]
2015-11-05 6:07 ` [PATCH v3 2/4] upload-pack: strip refs before calling ref_is_hidden() Lukas Fleischer
2015-11-05 6:07 ` [PATCH v3 3/4] Add support for matching full refs in hideRefs Lukas Fleischer
2015-11-05 6:07 ` [PATCH v3 4/4] t5509: add basic tests for hideRefs Lukas Fleischer
2015-11-05 20:46 ` [PATCH v3 0/4] Improve hideRefs when used with namespaces Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1446703651-9049-2-git-send-email-lfleischer@lfos.de \
--to=lfleischer@lfos.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=sunshine@sunshineco.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).