From: Ramkumar Ramachandra Date: Tue, 10 Jan 2012 15:21:26 GMT Subject: Re: [PATCH 6/6] sequencer: factor code out of revert builtin Message-ID: In-Reply-To: <20120108203800.GM1942@burratino> Jonathan Nieder wrote: > Ramkumar Ramachandra wrote: >>   memset(&opts, 0, sizeof(opts)); >>   opts.command = REPLAY_CMD_FOO; >>   opts.revisions = xmalloc(sizeof(*opts.revs)); >>   parse_args_populate_opts(argc, argv, &opts); >>   init_revisions(opts.revs); >>   sequencer_pick_revisions(&opts); > > Hm, I wonder if opts.command should be a string so each new caller > does not have to add to the enum and switch statements... The new caller would have to add enum and switch statements to define a new action anyway, so I think this should be an enum too. -- Ram