ref namespaces
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest4 patches 0 repliesNew
- v94 patches 2 repliesSuperseded
Patches in v10 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Fix prefix handling in ref iteration functionsrefs.c | +4 | 0 replies | |
| 2/4 | ref namespaces: infrastructurecache.h contrib/ environment.c +3 more | +89 | 0 replies | |
| 3/4 | ref namespaces: Support remote repositories via upload-pack and receive-packbuiltin/ upload-pack.c | +42 | 0 replies | |
| 4/4 | ref namespaces: documentationDocumentation/ Documentation/ Documentation/ +4 more | +101 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v10 yet.
Cover letter [PATCHv10 0/4] ref namespaces
This series adds support for dividing the refs of a single repository into multiple namespaces, each of which can have its own branches, tags, and HEAD. Git can expose each namespace as an independent repository to pull from and push to, while sharing the object store, and exposing all the refs to operations such as git-gc.
Storing multiple repositories as namespaces of a single repository avoids storing duplicate copies of the same objects, such as when storing multiple branches of the same source. The alternates mechanism provides similar support for avoiding duplicates, but alternates do not prevent duplication between new objects added to the repositories without ongoing maintenance, while namespaces do.
The first patch improves the prefix handling in the ref iteration functions, making it possible for us to implement for_each_namespaced_ref later. The next two patches implement and then use infrastructure for tracking the current namespace and iterating over the refs in that namespace. The last patch adds general documentation for namespaces, and specific references from the documentation on receive-pack, upload-pack, http-backend, and git.
v10: In receive-pack, add a comment to show_ref_cb documenting the use of .have refs for refs outside the current namespace. Add the same comment to the commit message of patch 3.
Josh Triplett (4):
Fix prefix handling in ref iteration functions
ref namespaces: infrastructure
ref namespaces: Support remote repositories via upload-pack and
receive-pack
ref namespaces: documentation
Documentation/Makefile | 2 +- Documentation/git-http-backend.txt | 8 +++ Documentation/git-receive-pack.txt | 2 +- Documentation/git-upload-pack.txt | 4 ++ Documentation/git.txt | 13 +++++- Documentation/gitnamespaces.txt | 75 ++++++++++++++++++++++++++++++++ builtin/receive-pack.c | 40 ++++++++++++++--- cache.h | 3 + contrib/completion/git-completion.bash | 3 +- environment.c | 41 +++++++++++++++++ git.c | 18 +++++++- refs.c | 33 ++++++++++++-- refs.h | 3 + upload-pack.c | 15 +++--- 14 files changed, 236 insertions(+), 24 deletions(-) create mode 100644 Documentation/gitnamespaces.txt
Signature · 1 line
1.7.5.4