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

Re: [PATCH] builtin-clone: Implement git clone as a builtin command.

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Dec 12, 2007, 18:40 UTC
Message-ID
<Pine.LNX.4.64.0712121330541.5349@iabervon.org>
In-Reply-To
<1197483943.10132.4.camel@hinata.boston.redhat.com>
On Wed, 12 Dec 2007, Kristian H�gsberg wrote:
Show 14 quoted lines
> Ugh, I meant builtin-remote there, sorry.  I use fetch_pack() like the shell
> script does, and it seem a lot easier that trying to call fetch:
> 
>         struct fetch_pack_args args;
> 
>         args.uploadpack = option_upload_pack;
>         args.quiet = option_quiet;
>         args.fetch_all = 1;
>         args.lock_pack = 0;
>         args.keep_pack = 1;
>         args.depth = option_depth;
>         args.no_progress = 1;
> 
>         refs = fetch_pack(&args, argv[0], 0, NULL, NULL);

Ah, but that only works for git native protocol remote repositories. Calling fetch instead would mean that other protocols also work without any fuss.

	-Daniel
*This .sig left intentionally blank*
Previous: Kristian HøgsbergNext: J. Bruce Fields
Message 12 of 13 in “builtin-clone: Implement git clone as a builtin command.”
  1. builtin-clone: Implement git clone as a builtin command.Kristian Høgsberg, Dec 11, 2007
  2. Daniel BarkalowDec 11, 2007
  3. Kristian HøgsbergDec 11, 2007
  4. Junio C HamanoDec 12, 2007
  5. Junio C HamanoDec 12, 2007
  6. Johannes SchindelinDec 12, 2007
  7. Kristian HøgsbergDec 12, 2007
  8. Johannes SchindelinDec 12, 2007
  9. Kristian HøgsbergDec 12, 2007
  10. Daniel BarkalowDec 12, 2007
  11. Kristian HøgsbergDec 12, 2007
  12. Daniel BarkalowDec 12, 2007
  13. J. Bruce FieldsDec 24, 2007

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.