]> git.ipfire.org Git - thirdparty/git.git/commit - parse-options.h
remote: force completing --mirror= instead of --mirror
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 9 Feb 2018 11:02:12 +0000 (18:02 +0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Feb 2018 18:24:52 +0000 (10:24 -0800)
commitebc4a04e8437e704e40a1d35aea030dc03ec8e56
tree28631a3703f8e2a1c9167f7c243241bd915902bd
parentab6a11c580f50ac37d436510fa4c6984c588f85f
remote: force completing --mirror= instead of --mirror

"git remote --mirror" is a special case. Technically it is possible to
specify --mirror without any argument. But we will get a "dangerous,
deprecated!" warning in that case.

This new parse-opt flag allows --git-completion-helper to always
complete --mirror=, ignoring the dangerous use case.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/remote.c
parse-options.c
parse-options.h