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

[PATCH v2 0/4] Improve hideRefs when used with namespaces

From
Lukas Fleischer <lfleischer@lfos.de>
Date
Nov 3, 2015, 07:58 UTC
Message-ID
<1446537497-13921-1-git-send-email-lfleischer@lfos.de>

This is a first set of patches improving documentation and behavior of the transfer.hideRefs feature as discussed in [1]. In particular, hideRefs is changed to generally match stripped refs by default and match full refs when prefixed with "^". The documentation is updated accordingly. Basic tests are added.

Changes since v1:
* Improvements in the code for denying pushing hidden refs.
* Simplification of the tests as suggested by Eric.
* New tests for the code for denying pushing hidden refs.
* Comments.
[1] http://marc.info/?l=git&m=144604694223920
Lukas Fleischer (4):
  Document the semantics of hideRefs with namespaces
  upload-pack: strip refs before calling ref_is_hidden()
  Add support for matching full refs in hideRefs
  t5509: add basic tests for hideRefs
 Documentation/config.txt         |  8 ++++++++
 builtin/receive-pack.c           | 27 ++++++++++++++++++++------
 refs.c                           | 15 ++++++++++++---
 refs.h                           | 10 +++++++++-
 t/t5509-fetch-push-namespaces.sh | 41 ++++++++++++++++++++++++++++++++++++++++
 upload-pack.c                    | 13 ++++++++-----
 6 files changed, 99 insertions(+), 15 deletions(-)
-- 
2.6.2
Next: Lukas Fleischer
Message 1 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.