Re: help.autoCorrect prefix selection considered a bit dangerous
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 20, 2018, 03:23 UTC
- Message-ID
- <xmqqftvwbfe8.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <87y39oztzf.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 5 quoted lines
> I don't have time to poke at this now, but wonder if: > > 1) The correction facility shouldn't at least have a list of "this does > stuff over the wire" commands and would then use a more conservative > estimate.
Not limited to 'over the wire' but 'can have consequences that might cause regret' would be a reasonable list to have.
On a similar topic, it would be a disaster for "git reset --h<RET>" to complete to "--hard" instead of "--help", for example. Perhaps parse-options API also needs to learn a list of possibly regrettable options.