From: Shawn O. Pearce Date: Tue, 30 Oct 2007 01:18:38 GMT Subject: Re: [PATCH 3/4] Build-in send-pack, with an API for other programs to call. Message-ID: <20071030011838.GV14735@spearce.org> In-Reply-To: <20071030011401.GU14735@spearce.org> "Shawn O. Pearce" wrote: > Daniel Barkalow wrote: > > -int main(int argc, char **argv) > > +void setup_send_pack(struct send_pack_args *args) > > +{ > > + receivepack = args->receivepack; > > + verbose = args->verbose; > > + send_all = args->send_all; > > + force_update = args->force_update; > > + use_thin_pack = args->use_thin_pack; > > + dry_run = args->dry_run; > > +} > ... > > +struct send_pack_args { > > + const char *receivepack; > > + int verbose; > > + int send_all; > > + int force_update; > > + int use_thin_pack; > > + int dry_run; > > +}; > > + > > Ick. How about doing what I did with builtin-fetch-pack.c [...] To be more precise please refer to the following fetch-pack changes: fa74052922: Always obtain fetch-pack arguments from struct fetch_pack_args bbaf458428: Use 'unsigned:1' when we mean boolean options -- Shawn.