Re: [RFC PATCH 05/35] fast-forward: add advice for novices
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Jul 6, 2021, 20:42 UTC
- Message-ID
- <60e4c03c58a45_1c4281208cb@natae.notmuch>
- In-Reply-To
- <878s2j5hk6.fsf@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason wrote:
> On Mon, Jul 05 2021, Felipe Contreras wrote:
Show 21 quoted lines
> > --- a/builtin/merge.c
> > +++ b/builtin/merge.c
> > @@ -1625,8 +1625,10 @@ static int merge_common(int argc, const char **argv, const char *prefix,
> > }
> > }
> >
> > - if (fast_forward == FF_ONLY)
> > + if (fast_forward == FF_ONLY) {
> > + diverging_advice();
> > die(_("unable to fast-forward"));
> > + }
> >
> > if (autostash)
> > create_autostash(the_repository,
>
> ...ah, and re my comment on the earlier patch here's where we're adding
> advice.
>
> I'd think just squash that into this, or mention in the commit message
> "a later commit will add an advice() before this, where this new wording
> will make more sense" or something...I don't think we lost any information in the previous patch. In fact with my suggestion we gained a little bit.
-- Felipe Contreras