On Mon, Oct 22, 2018 at 12:17 PM SZEDER Gábor <szeder.dev@xxxxxxxxx> wrote: > > On Sun, Oct 21, 2018 at 10:41:02AM +0200, Nguyễn Thái Ngọc Duy wrote: > > This helps format-patch gain completion for a couple new options, > > notably --range-diff. > > > > Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> > > --- > > Of course it will be even better if I could complete the ref for > > --range-diff=, but maybe another day. > > > > contrib/completion/git-completion.bash | 10 +++------- > > 1 file changed, 3 insertions(+), 7 deletions(-) > > > > diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash > > index c8fdcf8644..065b922777 100644 > > --- a/contrib/completion/git-completion.bash > > +++ b/contrib/completion/git-completion.bash > > @@ -1533,12 +1533,8 @@ _git_fetch () > > } > > > > __git_format_patch_options=" > > - --stdout --attach --no-attach --thread --thread= --no-thread > > - --numbered --start-number --numbered-files --keep-subject --signoff > > - --signature --no-signature --in-reply-to= --cc= --full-index --binary > > - --not --all --cover-letter --no-prefix --src-prefix= --dst-prefix= > > - --inline --suffix= --ignore-if-in-upstream --subject-prefix= > > - --output-directory --reroll-count --to= --quiet --notes > > + --full-index --not --all --no-prefix --src-prefix= > > + --dst-prefix= --notes > > " > > $__git_format_patch_options is also used when completing 'git > send-email's options, thus removing all these options will badly > affect that, and in fact makes 't9902-completion.sh' fail with: Oops. I guess I was excited about the other fix and forgot to test this patch. Junio please kick it out of 'pu'. I'll need to think if I could somehow make send-email work without hardcoding a bunch of options in it.,, -- Duy