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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 12 Dec 2007, Kristian Høgsberg wrote:

> 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*

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux