Re: [PATCH v13 06/14] apply: make it possible to silently apply
- From
Stefan Beller <sbeller@google.com>
- Date
- Sep 1, 2016, 16:57 UTC
- Message-ID
- <CAGZ79kZT-t_NZZJcdMEB8E1y_u0=LHGWOxbdEeYMjgFHZYtHHQ@mail.gmail.com>
- In-Reply-To
- <CAP8UFD3RE6L17nQmvZTkx6wycsdG7EA9eM=tYQD8nrS445zg1w@mail.gmail.com>
On Thu, Sep 1, 2016 at 1:01 AM, Christian Couder <christian.couder@gmail.com> wrote:
Show 14 quoted lines
> On Thu, Sep 1, 2016 at 12:07 AM, Stefan Beller <sbeller@google.com> wrote:
>>> Printing on stdout, and calls to warning() or error() are not
>>> taken care of in this patch, as that will be done in following
>>> patches.
>>
>>> - if (state->apply_verbosely)
>>> + if (state->apply_verbosity > verbosity_normal)
>>> error(_("while searching for:\n%.*s"),
>>> (int)(old - oldlines), oldlines);
>>
>> But this is an error(..) ?
>
> Do you mean that it was a bug in the original code to print this error
> only in verbose mode?Oh never mind.
I meant to point out the inconsistency between the commit message, that said: "error() are not taken care of in this patch" and modifying a condition for an error call. However we need to fix them as you renamed apply_verbosely to apply_verbosity and made it an enum. So I spoke too early.
> > Anyway I don't think such a refactoring is needed.
great :)