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

[PATCH v6 0/2] bundle-uri: copy all bundle references ino the refs/bundle space

From
Scott Chacon via GitGitGadget <gitgitgadget@gmail.com>
Date
Apr 25, 2025, 19:27 UTC
Message-ID
<pull.1897.v6.git.git.1745609278.gitgitgadget@gmail.com>
In-Reply-To
<pull.1897.v5.git.git.1745607965.gitgitgadget@gmail.com>

Edit the documentation to update the refspec and remove the untrue statement that it can be configured.

> bundle-uri: copy all bundle references ino the refs/bundle space
> bundle-uri: update bundle clone tests with new refspec path
Scott Chacon (2):
  bundle-uri: copy all bundle references ino the refs/bundle space
  bundle-uri: add test for bundle-uri clones with tags
 Documentation/technical/bundle-uri.adoc |  14 +-
 bundle-uri.c                            |   2 +-
 t/t5558-clone-bundle-uri.sh             | 202 ++++++++++++++----------
 3 files changed, 124 insertions(+), 94 deletions(-)
base-commit: f65182a99e545d2f2bc22e6c1c2da192133b16a3
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-1897%2Fschacon%2Fsc-more-bundle-refs-v6
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-1897/schacon/sc-more-bundle-refs-v6
Pull-Request: https://github.com/git/git/pull/1897
Range-diff vs v5:
 1:  6957ee2fed2 ! 1:  d6ec5c87b43 bundle-uri: copy all bundle references ino the refs/bundle space
     @@ Commit message
      
          Signed-off-by: Scott Chacon <schacon@gmail.com>
      
     + ## Documentation/technical/bundle-uri.adoc ##
     +@@ Documentation/technical/bundle-uri.adoc: will interact with bundle URIs according to the following flow:
     +    are present in the client repository. If some are missing, then the
     +    client delays unbundling until other bundles have been unbundled,
     +    making those OIDs present. When all required OIDs are present, the
     +-   client unbundles that data using a refspec. The default refspec is
     +-   `+refs/heads/*:refs/bundles/*`, but this can be configured. These refs
     +-   are stored so that later `git fetch` negotiations can communicate each
     +-   bundled ref as a `have`, reducing the size of the fetch over the Git
     +-   protocol. To allow pruning refs from this ref namespace, Git may
     +-   introduce a numbered namespace (such as `refs/bundles/<i>/*`) such that
     +-   stale bundle refs can be deleted.
     ++   client unbundles that data using a refspec. The refspec used is
     ++   `+refs/*:refs/bundles/*`. These refs are stored so that later 
     ++   `git fetch` negotiations can communicate each bundled ref as a `have`,
     ++   reducing the size of the fetch over the Git protocol. To allow pruning
     ++   refs from this ref namespace, Git may introduce a numbered namespace
     ++   (such as `refs/bundles/<i>/*`) such that stale bundle refs can be
     ++   deleted.
     + 
     + 3. If the file is instead a bundle list, then the client inspects the
     +    `bundle.mode` to see if the list is of the `all` or `any` form.
     +
       ## bundle-uri.c ##
      @@ bundle-uri.c: static int unbundle_from_file(struct repository *r, const char *file)
       		const char *branch_name;
 2:  ec5d629f32b = 2:  825d2b01eae bundle-uri: add test for bundle-uri clones with tags
-- 
gitgitgadget
Previous: Scott Chacon via GitGitGadgetNext: Scott Chacon via GitGitGadget
Message 30 of 37 in “bundle-uri: copy all bundle references ino the refs/bundle space”
  1. bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Feb 25, 2025
  2. Junio C HamanoFeb 25, 2025
  3. Derrick StoleeFeb 25, 2025
  4. Scott ChaconMar 1, 2025
  5. Junio C HamanoMar 3, 2025
  6. Derrick StoleeMar 3, 2025
  7. 0/3 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Mar 1, 2025
  8. 1/3 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Mar 1, 2025
  9. 2/3 bundle-uri: update bundle clone tests with new refspec pathScott Chacon via GitGitGadget, Mar 1, 2025
  10. 3/3 bundle-uri: add test for bundle-uri clones with tagsScott Chacon via GitGitGadget, Mar 1, 2025
  11. Derrick StoleeMar 3, 2025
  12. 0/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Mar 18, 2025
  13. 1/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Mar 18, 2025
  14. Phillip WoodMar 19, 2025
  15. 2/2 bundle-uri: add test for bundle-uri clones with tagsScott Chacon via GitGitGadget, Mar 18, 2025
  16. Phillip WoodMar 19, 2025
  17. Taylor BlauMar 19, 2025
  18. Toon ClaesApr 14, 2025
  19. Scott ChaconApr 25, 2025
  20. Junio C HamanoMar 21, 2025
  21. 0/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Apr 25, 2025
  22. 1/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Apr 25, 2025
  23. 2/2 bundle-uri: add test for bundle-uri clones with tagsScott Chacon via GitGitGadget, Apr 25, 2025
  24. Scott ChaconApr 25, 2025
  25. Phillip WoodApr 25, 2025
  26. Junio C HamanoApr 25, 2025
  27. 0/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Apr 25, 2025
  28. 2/2 bundle-uri: add test for bundle-uri clones with tagsScott Chacon via GitGitGadget, Apr 25, 2025
  29. 1/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Apr 25, 2025
  30. 0/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Apr 25, 2025
  31. 1/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Apr 25, 2025
  32. 2/2 bundle-uri: add test for bundle-uri clones with tagsScott Chacon via GitGitGadget, Apr 25, 2025
  33. 0/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Apr 25, 2025
  34. 2/2 bundle-uri: add test for bundle-uri clones with tagsScott Chacon via GitGitGadget, Apr 25, 2025
  35. 1/2 bundle-uri: copy all bundle references ino the refs/bundle spaceScott Chacon via GitGitGadget, Apr 25, 2025
  36. Junio C HamanoApr 25, 2025
  37. Phillip WoodApr 29, 2025

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.