Re: fuzzy patch application
- From
- Nick Desaulniers <ndesaulniers@google.com>
- Date
- Feb 10, 2017, 22:56 UTC
- Message-ID
- <CAKwvOdmvYiu4ApxL7jVh_0WZUMVeC2jJ4Q_Zs5Z5-J6GNH8DdQ@mail.gmail.com>
- In-Reply-To
- <xmqqlgtdiroz.fsf@gitster.mtv.corp.google.com>
It's not my call about the defaults, but users can be surprised by such changes.
For the dangers related to fuzzing, is there more info? I found and old post on this from Linus calling fuzzing dangerous but from what I could tell about my patch that wouldn't apply without fuzzing, the only difference in bad hunks was whitespace that had diverged somehow.
On Fri, Feb 10, 2017 at 2:53 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 16 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > >> Making "am -3" default may also scare users who are not exactly >> comfortable with reading "git diff" output during a conflicted merge >> and resolving a conflict, but other than that there shouldn't be any >> downside. > > Another obvious downside is that there are those of us who prefer to > run "am" without "-3" first to notice that the patch we expect to > apply cleanly does apply cleanly, which gives us a chance to catch > mistakes. I personally feel that as long as there is a configuration > that makes -3 a personal default (with --no-3way override from the > command line), it is a better design not to enable "-3" by default > for everybody. New people can first learn using both forms and then > after they got comfortable with resolving merges, they can choose to > flip the default for themselves.
-- Thanks, ~Nick Desaulniers