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

Re: [PATCH 3/3] clone: add `--seed` shorthand

From
Junio C Hamano <gitster@pobox.com>
Date
May 24, 2015, 19:07 UTC
Message-ID
<xmqqtwv1bxpy.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20150522064922.GA27716@peff.net>
Jeff King <peff@peff.net> writes:
> Having slept on it, I really think "--seed" should be "fetch from the
> seed into temp refs", and not what I posted earlier.
Yeah, I think that is the right way to do it.

And it happens to mesh well with the (not so well advertised but not so well hidden) plan to allow loaded server side to advise --seed from bundle hosted elsewhere, e.g.

     * "clone" connects to upload-pack
     * upload-pack advertises --seed=http://cdn.github.com/project.bundle
       via capability
     * "clone" disconnects from upload-pack, and runs (resumable)
       wget to the seed to grab bundle.
     * "clone" then fetches refs/*:refs/remotes/origin/* from the bundle
     * "clone" then continues to fetch into +refs/remotes/origin/* as
       usual, but does an equivalent of using --prune for this fetch
       to drop anything extra/stale that the seed bundle may have
       had.
     * optionally "clone" can immediately "repack".
... which I wanted to see happen in a near future.

And that --seed thing that can name a local bundle file is a very good first step toward the direction, I think.

Thanks.
Previous: Jeff KingNext: Jeff King
Message 9 of 16 in “--seed as an alias for --dissociate --reference”
  1. 0/3 --seed as an alias for --dissociate --referenceJeff King, May 21, 2015
  2. 1/3 clone: use OPT_STRING_LIST for --referenceJeff King, May 21, 2015
  3. 2/3 clone: reorder --dissociate and --reference optionsJeff King, May 21, 2015
  4. 3/3 clone: add `--seed` shorthandJeff King, May 21, 2015
  5. Johannes SchindelinMay 21, 2015
  6. Philip OakleyMay 21, 2015
  7. Johannes SchindelinMay 22, 2015
  8. Jeff KingMay 22, 2015
  9. Junio C HamanoMay 24, 2015
  10. Jeff KingMay 27, 2015
  11. Junio C HamanoMay 27, 2015
  12. Jeff KingMay 22, 2015
  13. Junio C HamanoMay 21, 2015
  14. Jeff KingMay 21, 2015
  15. Junio C HamanoMay 21, 2015
  16. Michael HaggertyMay 24, 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.