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

Re: [PATCH] Make fetch-pack a builtin with an internal API

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Jul 8, 2007, 23:12 UTC
Message-ID
<Pine.LNX.4.64.0707081841160.6977@iabervon.org>
In-Reply-To
<7vsl7yzfkg.fsf@assigned-by-dhcp.cox.net>
On Sun, 8 Jul 2007, Junio C Hamano wrote:
Show 32 quoted lines
> Daniel Barkalow <barkalow@iabervon.org> writes:
> 
> > In addition to making fetch-pack a builtin, this allows it to be called 
> > directly from other built-in code without generating and parsing argument 
> > lists, which will be useful for builtin-fetch.
> >
> > Incidently, it makes git-fetch-pack not output lists of what it fetched 
> > when it fails.
> 
> That sounds sensible.
> 
> Hmmm.  incidentally it seems to do a bit more than that.
> 
> > @@ -663,15 +659,42 @@ static int fetch_pack_config(const char *var, const char *value)
> >  
> >  static struct lock_file lock;
> >  
> > -int main(int argc, char **argv)
> > +void setup_fetch_pack(const char *_uploadpack,
> > ...
> > +#if 0
> > +	git_config(fetch_pack_config);
> > +
> > +	if (0 <= transfer_unpack_limit)
> > +		unpack_limit = transfer_unpack_limit;
> > +	else if (0 <= fetch_unpack_limit)
> > +		unpack_limit = fetch_unpack_limit;
> > +#endif
> > +}
> 
> This has been moved elsewhere?  I do not see how the code now
> honors the configuration.

It's at the beginning of cmd_fetch_pack() for the case of running it from the command line, but it should probably also be an argument to setup_fetch_pack(). Got it added to my revisions, and I'll send out a new version once people have looked over this further.

	-Daniel
*This .sig left intentionally blank*
Previous: Junio C Hamano
Message 3 of 3 in “Make fetch-pack a builtin with an internal API”
  1. Make fetch-pack a builtin with an internal APIDaniel Barkalow, Jul 8, 2007
  2. Junio C HamanoJul 8, 2007
  3. Daniel BarkalowJul 8, 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.