git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2 1/4] Document the semantics of hideRefs with namespaces

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 3, 2015, 21:09 UTC
Message-ID
<xmqq8u6edc3a.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1446537497-13921-2-git-send-email-lfleischer@lfos.de>
Lukas Fleischer <lfleischer@lfos.de> writes:
> ++
> +If a namespace is set, references are stripped before matching. For example, if

The first sentence is probably not understood by many readers, as you do not define what is "to strip references". The namespace prefix is stripped from the reference before a reference is matched against the hideRefs setting.

Show 5 quoted lines
> +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.
Previous: Lukas FleischerNext: Lukas Fleischer
Message 3 of 10 in “Improve hideRefs when used with namespaces”
  1. 0/4 Improve hideRefs when used with namespacesLukas Fleischer, Nov 3, 2015
  2. 1/4 Document the semantics of hideRefs with namespacesLukas Fleischer, Nov 3, 2015
  3. Junio C HamanoNov 3, 2015
  4. 2/4 upload-pack: strip refs before calling ref_is_hidden()Lukas Fleischer, Nov 3, 2015
  5. 3/4 Add support for matching full refs in hideRefsLukas Fleischer, Nov 3, 2015
  6. Junio C HamanoNov 3, 2015
  7. Junio C HamanoNov 4, 2015
  8. 4/4 t5509: add basic tests for hideRefsLukas Fleischer, Nov 3, 2015
  9. Eric SunshineNov 4, 2015
  10. Jeff KingNov 4, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.