Received: by 10.223.185.116 with SMTP id b49csp3909580wrg; Tue, 13 Feb 2018 09:34:27 -0800 (PST) X-Google-Smtp-Source: AH8x225x8Epgv5sJ2FS+YdT5USaodHNQXEjR24UoHmfVDVKQ7BDzn7vJerM0pbKW+tEfGwQOyoDS X-Received: by 2002:a17:902:7841:: with SMTP id e1-v6mr1803460pln.130.1518543267197; Tue, 13 Feb 2018 09:34:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518543267; cv=none; d=google.com; s=arc-20160816; b=nKCU3udZGjRUhgjUSo23LiLw3L0QHoxpByiyAIcetGbM1wLZXfYz8YZ4ww8+rXR699 bUYCSp/JTF+j13XPCaUX33WdvodVtcW6UT2sJ1+DnCWl8+B6Xj/XpZthcYSAuQEILvT6 WnosjF68y0M7oOn/CjiYsBO+jMyv2ApkzGhAQo6cgySkEPeBx4/tD86ghkRi6tk5CAOS gEHC9wXwqmWLqktp9LksRgxvPHKD6weEcEtOy2tVB//iDPFJgQmc8IN6kVVQOi9nI72w 20DHZZOMzVal/v+76SOmfDKFbNoykxZkK3X/k5AtaBOjxLP25w96slUNOje4rwfTcAOj jmlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hQsVc0Dry6abNWmc+2PT8Ft1YwFIVjZIjZALjHFKeEo=; b=MZ62P0QSTT99//9gggdrmFaNIg/YexqVnFL9Yu3RSBfJK/Y1DXZGU7SNgtl4wa+wnL thdH2CfXl5jBYARL1Xu2sgoJ6SqmcjUVNECAtrIbtsCiW8ag9We0PSVZVN0nT4BZ3Bfn j7gexK8JnbtnXpcpN+gy4TINyp46/wzqgmWq8ALNAX4nBk9mn4CXW4i7M8EaBtPe0FRA G6pk9hS/CqZZ8qrtu98768JIt8NDk93E1A2tfvoHhx2OOKQm6EFhIK/rLC0Eb6AH2cr+ 3ooNiWdwNubK7pgsZ9ySlOoH3ervbjIAvv6TXwe14FhZ4BgiwtqlxDB1CH145YI/rWtG GcWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=oKNnf5mM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si1427873pgq.557.2018.02.13.09.34.12; Tue, 13 Feb 2018 09:34:27 -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=oKNnf5mM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965290AbeBMRdG (ORCPT + 99 others); Tue, 13 Feb 2018 12:33:06 -0500 Received: from mail-io0-f171.google.com ([209.85.223.171]:33363 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964849AbeBMRdD (ORCPT ); Tue, 13 Feb 2018 12:33:03 -0500 Received: by mail-io0-f171.google.com with SMTP id n7so22151491iob.0; Tue, 13 Feb 2018 09:33:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=hQsVc0Dry6abNWmc+2PT8Ft1YwFIVjZIjZALjHFKeEo=; b=oKNnf5mMV09PBJYm1V2qgkIxTKeAaPz/lKs5fVUD29flqyX9x/S1m23JOT09DUWye4 zSWuoAa6bvId7aWUNEMjXuMEITS+c/j47diXEn0zo9qxTR8blW9x08/qQR5r9liihI4c fDaPmcQ3NQ4j9XMhzqT7g6W0QPwRZINSY/a/JjRbl/iyGkuh6jGb0sI2S06MUcCMWt04 rgch/sS1TlnLRqlVehv/QU5PTvGBZPRQM2aJsfHPkVtlrcyDs7QPX5+o5jv0MTLI7pC/ sP+oKgOgVTJ0BMuIyumE2F2XiyqDf/KBpqbLrPcWbjhODNAbMTdyVnLXCan4flUdegkQ +QnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=hQsVc0Dry6abNWmc+2PT8Ft1YwFIVjZIjZALjHFKeEo=; b=ofTITm9J4mq2tHTs25OYjb9uLReVd3Rk7nsVNde6zTQ+Udqh/DHd+7m+ONYVg89tIC ZtRtbhuc+wzejQIu6HiIhCHvx1jPZvSoeBNssPo3aeiV3ycpmnzJ3iLf9id/BYxasBqz Iosav3Zcyb5aW/jB7GvwstubmdOfbfljPT4LkkOAOynE+7mSNUOQtK6KBJNjx2t0eNcD tOUOLsIG0q5vIwOALLzjsZqrDbTwc6vXKhBJkpGmV5tjSvM4VXlNs8HUSViWSp9+jWiv OKpH9ZBnR45KmqwewrshgJsYEweSIKcVrtA0ybLpLBNXXuoeoj+TXweo9Nz1PGubbVS1 PK6Q== X-Gm-Message-State: APf1xPC31lQ3uuwfb9b779c4Tc0urs1beS+9lXgrSvJmwoBsPtrfQ3go 4cHrnQsGUVNG7euMKv8WSrzfKBrQQ7nZsZNypkSrtkeH X-Received: by 10.107.132.18 with SMTP id g18mr2266350iod.46.1518543182878; Tue, 13 Feb 2018 09:33:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.135.221 with HTTP; Tue, 13 Feb 2018 09:33:02 -0800 (PST) In-Reply-To: References: <20180213080036.3bf3a908@canb.auug.org.au> <20180212222157.0a3bd472@vento.lan> From: Linus Torvalds Date: Tue, 13 Feb 2018 09:33:02 -0800 X-Google-Sender-Auth: RLJeNAPNsu-SnY8G5XVzo3Ipv2Q Message-ID: Subject: Re: linux-next: unnecessary merge in the v4l-dvb tree To: Junio C Hamano Cc: Mauro Carvalho Chehab , Stephen Rothwell , Linux-Next Mailing List , Linux Kernel Mailing List , Git Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 13, 2018 at 9:18 AM, Junio C Hamano wrote: > > 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. Oooh. Yes, that sounds like the right thing to do. So the "no fast-forward" logic would trigger only if the name we used for merging is one of the temporary ones (ie .git/{FETCH,MERGE}_HEAD), not if the mentioned tag is already a normal tag reference. Then it's very explicitly about "don't lose the signing information". I'd still have to teach people to use "--only-ff" if they don't do the "fetch and merge" model but literally just do "git pull upstream vX.Y", but at least the case Mauro describes would automatically just DTRT. Me likey. Linus