Re: [PATCH] parse-options: don't emit "ambiguous option" for aliases

2019-04-22 Thread Duy Nguyen
On Mon, Apr 22, 2019 at 7:23 PM Nguyễn Thái Ngọc Duy wrote: > @@ -574,6 +615,70 @@ static int show_gitcomp(struct parse_opt_ctx_t *ctx, > return PARSE_OPT_COMPLETE; > } > > +/* > + * Scan and may produce a new option[] array, which should be used > + * instead of the original 'options'. >

[PATCH] parse-options: don't emit "ambiguous option" for aliases

2019-04-22 Thread Nguyễn Thái Ngọc Duy
Change the option parsing machinery so that e.g. "clone --recurs ..." doesn't error out because "clone" understands both "--recursive" and "--recurse-submodules" to mean the same thing. Initially "clone" just understood --recursive until the --recurses-submodules alias was added in ccdd3da652 ("cl