Received: by 10.223.185.116 with SMTP id b49csp3894045wrg; Tue, 13 Feb 2018 09:19:03 -0800 (PST) X-Google-Smtp-Source: AH8x227Ba7p63qBOZDlXJKS2eZwOj2tfbnflp1swBimAP+m0RozhvQHZejRddwwsQINxw6h3Itns X-Received: by 10.98.210.134 with SMTP id c128mr1928126pfg.199.1518542343315; Tue, 13 Feb 2018 09:19:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518542343; cv=none; d=google.com; s=arc-20160816; b=KfZRU803ImPNoQfWpm+MIROqvK8NL8pcvLWChMYKFBGvXE9hd4tbipJ4nKwmmQ/520 Rqg6gteGaQJCTYYffghhZ3lAJTXlGEV5TxYCeWxVi9Rpd7+4oRvmOCfPuB1Im8roLr8y 1foDCRT0aCBBW04iLgVEGkWzjf9GW9WSDECy8lXbK83UNlYv/1aBQYV0QyF9+wl6yVIE 9N0353LX8UiQ2h6TwsIyuW1merLF5MEpIJjnjUJOlk0J8mjl5VXmaPH9FgJmX+rsf4Lq KU7eWLwvS0iXf7OJFnQzvRvPNU3pE/JH8pRjpT9zgU6O63kBpsX1zO8xAeN18uDlhi+C U+Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=nI260c0vIp+iNO8EiJn0/6tN731OdZ6l0WtpyXbApRU=; b=ByrXco/GHCMtRJBS60zMx8Klhk8LoD08s77GNyQHARcu+5y72Bkl0WIuM6itrv+mOH DqqbvhFEeiiBWH/+ufYTpChB5JR+mgolK0zw7GH27Xtw2H/K6EnpNCXVBh+suk8eCLaE ssPD0j0fJ9EbhvsdzKfEAlK3zOpryrRBiWTYDZNbdUqHbjZyaUpCD4iH0nNcBakvtepD c1RaY4LKwblMdAF2fc1HGmut4PaGIJcDTX9aoaUm4NQCFTue5o24Fj87ZmbPvHTLNu7Q BIHMuB8RIA2OEOhNno3E7AokLQXR4tCglUO4bemrEo6Li5W/Y7Ub+dfnOScM+I9olcIZ 8C1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lguG45H+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pobox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z100-v6si2338409plh.129.2018.02.13.09.18.49; Tue, 13 Feb 2018 09:19:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lguG45H+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=pobox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965287AbeBMRSL (ORCPT + 99 others); Tue, 13 Feb 2018 12:18:11 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:52015 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965091AbeBMRSH (ORCPT ); Tue, 13 Feb 2018 12:18:07 -0500 Received: by mail-wm0-f66.google.com with SMTP id r71so17514102wmd.1; Tue, 13 Feb 2018 09:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=nI260c0vIp+iNO8EiJn0/6tN731OdZ6l0WtpyXbApRU=; b=lguG45H+MWGNh4KDQeRTOifZl+Oe1WPv+Ms90e7bJHRRQKHsqe68nsKDawpxvyW4sX ocnhG7xU+Nhl4SzWYvt6gqHIWQjgVaO+aDmT8zfi2Jvhevy6IlMnE3peI2+DiK4QHZBP Gz2NnmsNHAQS5eClUSb02OVsaMZwrNAG/CdL9Olv7NSUDHLXE2xHY/Vu1RlF7xZSFL9M 4riYlTND8DMkfn4J5axDyqQabA45j/4PaUVc+fjbaHCO/qFbTVmyVc0hiScXBfkx5bdi vAANXEfbGsm7uf6w/DZnya4udGUjBM+jcYW6SUTR4Lev1zQtnRWOslHQUYpY61dKv5G5 e1eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=nI260c0vIp+iNO8EiJn0/6tN731OdZ6l0WtpyXbApRU=; b=rAcWUlVwFNx7O7zaw+i0RDukV607H1jzcH7ii+S3jHZF89WHFHnEL+hQCQYMNceIRF NLQSv8qPuRly4KWeXDpRiOyRSRWOpJxOVcrg7CeOE+I/fKFeiwMSYOVKB1pmyi6BngH6 pFSPlFc3DEVrNSH49PkNDIX/hX4ad3KlDoWKQS3lNjz4oAmxWjojLjL3ugyWPiIipm5+ GiDVZjeA4bQJEiklnIPBzZ0s6bQAxPLY/5s8NIJc33T/KoKKFPOiQuL0aKFH7GY18P6o M8pbIkaOn/wVaqHmhytmrmJ/w65pSnA+pQe8gAkUTUgsVEO7Aw4auDhFpQyIOasY2hkq XOVg== X-Gm-Message-State: APf1xPBWbpwiHloBYFEK+H+i/X1+32gi+HIZlsdQVn1unbbgkfiBvvBl AzJADutQYmX9AmGsaeWEPfB5UQrI X-Received: by 10.28.58.79 with SMTP id h76mr2057516wma.139.1518542285104; Tue, 13 Feb 2018 09:18:05 -0800 (PST) Received: from localhost (168.50.187.35.bc.googleusercontent.com. [35.187.50.168]) by smtp.gmail.com with ESMTPSA id c7sm4167966wrh.18.2018.02.13.09.18.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Feb 2018 09:18:04 -0800 (PST) From: Junio C Hamano To: Mauro Carvalho Chehab Cc: Linus Torvalds , Stephen Rothwell , Linux-Next Mailing List , Linux Kernel Mailing List , Git Mailing List Subject: Re: linux-next: unnecessary merge in the v4l-dvb tree References: <20180213080036.3bf3a908@canb.auug.org.au> <20180212222157.0a3bd472@vento.lan> Date: Tue, 13 Feb 2018 09:18:03 -0800 In-Reply-To: <20180212222157.0a3bd472@vento.lan> (Mauro Carvalho Chehab's message of "Mon, 12 Feb 2018 22:21:57 -0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mauro Carvalho Chehab writes: > Yes, that's my pain. I don't want ff only when pulling from others, > only when pulling from upstream tree. > >> >> We may want per-remote equivalent for it, i.e. e.g. >> >> [pull] >> ff=false ;# good default for collecting contributions >> >> [remote "torvalds"] >> pullFF = only ;# good default for catching up >> >> or something like that, perhaps? > > > Yeah, something like that works. Please notice, however, that what I > usually do is: > > $ git remote update torvalds > $ git merge > (or git pull . ) > > So, for the above to work, it should store somehow the remote from > where a tag came from. That makes me wonder if another heuristic I floated earlier is more appropriate. When merging a tag object T, if refs/tags/T exists and it is that tag object, then an updated "merge" would default to "--ff"; otherwise, it would keep the current default of creating a merge even when we could fast-forward, in order to record that tag T in the resulting history. Of course, end users can use command line options to override such heuristics anyway, but if the behaviour based on the new heuristic is easy to explain and understand, and covers majority of the use cases without command line override, then we might not even need a new configuration mechanism like remove.torvalds.pullFF mentioned above.