Re: [PATCH 4/5] rebase -i: learn to abbreviate command names
- From
liam Beguin <liambeguin@gmail.com>
- Date
- Nov 29, 2017, 02:08 UTC
- Message-ID
- <edecde30-dfde-89a7-3110-c791f4ee3a38@gmail.com>
- In-Reply-To
- <xmqq1skke1so.fsf@gitster.mtv.corp.google.com>
Hi Junio,
On 27/11/17 12:19 AM, Junio C Hamano wrote:
Show 19 quoted lines
> Liam Beguin <liambeguin@gmail.com> writes: > >> if (command == MAKE_SCRIPT && argc > 1) >> - return !!sequencer_make_script(keep_empty, stdout, argc, argv); >> + return !!sequencer_make_script(keep_empty, abbreviate_commands, >> + stdout, argc, argv); > > This suggests that a preliminary clean-up to update the parameter > list of sequencer_make_script() is in order just before this step. > How about making it like so, perhaps: > > int sequencer_make_script(FILE *out, int ac, char **av, unsigned flags) > > where keep_empty becomes just one bit in that flags word. Then another > bit in the same flags word can be used for this option. > > Otherwise, every time somebody comes up with a new and shiny feature > for the function, we'd end up adding more to its parameter list. >
Will do. Thanks,
Liam