All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Henrie <alexhenrie24@gmail.com>
To: Elijah Newren <newren@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>,
	Robert Dailey <rcdailey.lists@gmail.com>,
	rsbecker@nexbridge.com, Junio C Hamano <gitster@pobox.com>,
	Konstantin Tokarev <annulen@yandex.ru>,
	Theodore Tso <tytso@mit.edu>
Subject: Re: [PATCH v3] pull: warn if the user didn't say whether to rebase or to merge
Date: Sat, 29 Feb 2020 20:27:56 -0700	[thread overview]
Message-ID: <CAMMLpeS2Fq3Nj2QjvNT6i_+ceDHW-pUqTRUhmARWen-jWQfsJg@mail.gmail.com> (raw)
In-Reply-To: <CABPp-BEewypPoDrWesk=6twgj2TMGFYdaYzdrg5p4K+mExHqeg@mail.gmail.com>

On Sat, Feb 29, 2020 at 4:31 PM Elijah Newren <newren@gmail.com> wrote:
>
> Ick; we don't need the warning to regurgitate large sections of the
> manual, we only need to provide pointers and then they can look up the
> details in their favorite way (google, stackoverflow, looking at the
> actual manpage, etc.)  How about something more like
>
> > +               warning(_("Pulling without specifying how to reconcile divergent branches\n"
> > +                       "is discouraged. You can squelch this message by setting pull.rebase,\n"
> > +                       "or by passing any of --rebase, --no-rebase, or --ff-only\n"));

I intentionally made the message similar to the message you get when
you try to commit without setting user.name or user.email. Providing
the user with clear information on the spot is much more effective at
getting them to do the right thing than expecting them to use Google
or reread the man pages. We also want the user to understand that they
only have to set pull.rebase or pull.ff once, whereas a command-line
flag applies only to the current pull. Nevertheless, any warning
message is better than no warning at all, so I would be happy to
resubmit with your proposed text if there's consensus that a shorter
message is better.

-Alex

  reply	other threads:[~2020-03-01  3:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-29 21:22 [PATCH v3] pull: warn if the user didn't say whether to rebase or to merge Alex Henrie
2020-02-29 23:30 ` Elijah Newren
2020-03-01  3:27   ` Alex Henrie [this message]
2020-03-02 21:51     ` Junio C Hamano
2020-03-02 22:37 ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMMLpeS2Fq3Nj2QjvNT6i_+ceDHW-pUqTRUhmARWen-jWQfsJg@mail.gmail.com \
    --to=alexhenrie24@gmail.com \
    --cc=annulen@yandex.ru \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=newren@gmail.com \
    --cc=rcdailey.lists@gmail.com \
    --cc=rsbecker@nexbridge.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.