From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 753611FA13 for ; Tue, 24 Nov 2020 00:41:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730805AbgKXAjk (ORCPT ); Mon, 23 Nov 2020 19:39:40 -0500 Received: from cloud.peff.net ([104.130.231.41]:39410 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730800AbgKXAjk (ORCPT ); Mon, 23 Nov 2020 19:39:40 -0500 Received: (qmail 29986 invoked by uid 109); 24 Nov 2020 00:39:40 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Tue, 24 Nov 2020 00:39:40 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 9540 invoked by uid 111); 24 Nov 2020 00:39:39 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Mon, 23 Nov 2020 19:39:39 -0500 Authentication-Results: peff.net; auth=none Date: Mon, 23 Nov 2020 19:39:38 -0500 From: Jeff King To: Felipe Contreras Cc: "Theodore Y. Ts'o" , Alex Henrie , =?utf-8?Q?V=C3=ADt?= Ondruch , Git mailing list Subject: Re: Pick the right default and stop warn on `git pull` Message-ID: References: <742df4c2-2bc5-8a4b-8de1-cd5e48718398@redhat.com> <20201123191355.GA132317@mit.edu> <20201123202003.GB132317@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Mon, Nov 23, 2020 at 04:55:31PM -0600, Felipe Contreras wrote: > On Mon, Nov 23, 2020 at 3:48 PM Jeff King wrote: > > On Mon, Nov 23, 2020 at 02:34:18PM -0600, Felipe Contreras wrote: > > > > There has never been a "pull.mode=ff-only" option; that's what I tried > > > to introduce. > > > > There is pull.ff=only these days, which also squelches the message. But > > you're right that it was never the default. > > But that's not the same thing. The whole point of "pull.mode=ff-only" > was to print a message like: > > The pull was not fast-forward, please either merge or rebase. Perhaps I don't understand the distinction you are making. I have pull.ff=ff set, and I get: $ git pull remote: Enumerating objects: 1, done. remote: Counting objects: 100% (1/1), done. remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (1/1), done. From /home/peff/tmp/. a4f00e2..22a4151 master -> origin/master fatal: Not possible to fast-forward, aborting. Which sounds like the same thing, modulo the error message not being nearly as helpful (which I would be happy to see rectified). Is there some other difference you're thinking of? -Peff