Received: by 10.223.185.116 with SMTP id b49csp2663363wrg; Mon, 12 Feb 2018 13:38:42 -0800 (PST) X-Google-Smtp-Source: AH8x2273PWdQ7ztZRzLHjWCCiBi26OSXtAdPmpUHlS7G/vNY/VhjOYCgJMjdQYR9VnCSVeilYSwB X-Received: by 2002:a17:902:380c:: with SMTP id l12-v6mr11502340plc.8.1518471522738; Mon, 12 Feb 2018 13:38:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518471522; cv=none; d=google.com; s=arc-20160816; b=bHXcAJfoQBIPConwNbNkGmsTxPKWefwDHw1EYfbokSj0qoQ01nt3EqbQ3TYn/XBr3C 4+IJp0p3whk+KnAQmaAZAgEs4w6t8WtWWZXugs9NTlW6FNvQobvHvzKtmO4gSd96iae3 iAAr/b/in1KFpO+rgCA4Nfcpfn4rVN9dUBrziVwrf8+SkXW+leXRyuRrok8M4DbBiiqW /NC4SuEEE/1hxEfoyDhW2sYv/llykMhXsjkCgV38EdfKSFejWabp7qOrgokan1UC5Xg9 18/pV287d53ME4E960i48rDqGaLvzz1OfiwVJQlnpGqVkodNamr3YVvxhtcI0Wq8wmgW +j3A== 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=fBoaAseK96R2il/Iay5CDvvHCfJL7RRVebQPkFsBaQw=; b=RnI8oQMMchGa5pPhujGllmSyA23HPVyudmOlDcV0w8A3isD6rcV7ZCOkLaEhTrSwng F6/2JSIT6YJGGUGbg4p9kE6VoQXKrGy5ia0btCqrvvmCycbntcV41Osp9Ft1A93JnQwt Y3ALSd3l1cxuFVHd4Iu3chg3rIFBTR53m/tuHLp1W6ND1/6P+FddBSifVIUvxVSoFV+9 yAZthdzZI4w1+QvBA5bFihYso/a7sbIuobqGQan+aTQScC6hk9gR/+7xMzgnjF6foW0f 5f2htoF2Q4qPgsyjiqN8sbEYCLzaQhn4zF4p72X8SDjdj293t6TZX+iPKFQy1Dwf+c+s ha3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=apf9Qn8O; 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 b3si192408pgc.496.2018.02.12.13.38.27; Mon, 12 Feb 2018 13:38:42 -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=apf9Qn8O; 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 S932543AbeBLVhU (ORCPT + 99 others); Mon, 12 Feb 2018 16:37:20 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:51715 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932204AbeBLVhS (ORCPT ); Mon, 12 Feb 2018 16:37:18 -0500 Received: by mail-wm0-f48.google.com with SMTP id r71so12250039wmd.1; Mon, 12 Feb 2018 13:37:17 -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=fBoaAseK96R2il/Iay5CDvvHCfJL7RRVebQPkFsBaQw=; b=apf9Qn8OJGM77F9zL1QfPq0N/K/gBB1+tDwvsAqbRJuJftqUlW4X2o5bpWBsWZNDDS 4e7xRxWRg1hG8iTmyAyKeY67WN0fQqfrRlCqsh62fzPlVJt6vkYPUkM9G0Ua5sRpdkUO xwZazSLsCRBCp8B+4pe5l4b3p6l+Qx/eRGbQLDLF49KIu5bEuzCwMcBAGW43gDJeGRrq 8Tl3ENblGTlmiLxfxEeX9qk8IbJkUMT4GjQNRE6GApehW28tlyniCQgKFtagjQ2RTkeW uVy5QDZzwmyFpnd6Z5Vi0L4vBthmHyV1oGdGJIcX39ucWtKeebS41JD8rUR37nFY0pIX YD4w== 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=fBoaAseK96R2il/Iay5CDvvHCfJL7RRVebQPkFsBaQw=; b=leVgPF+ACnFRummb5uXDqlNcbDYoHagIRe7yqK4s9y33ZQPHq8Q5g8RXjPCExRndHe 6+qMEgk446RtRuKtCNYeNLqfIckBVy2m7Vt4uXAh9dLYH28EW46buXlgehGogr5VepA/ Z9IqD9Fau0EQNIYHsE6vRJ3LXZTtgPSK3PYUhgAeIquatmItdZffGuOPFLehoSbdyMQI x2cyHMT0KQJKhvNZM/d273S9xwzZ1x1uWdoQa6mQVwHUY9IIFjhGqk8UCimCe/nCDbc7 RctcfB7mTXlRDV2odheENqd12ENDVwc6ybg1rowrBn/u4KV1F57Gh2ttQDlbiQySN0El D+PQ== X-Gm-Message-State: APf1xPCfY39MhBiwDMRNHrveokZJ080NAQkMYT4+dUVOA+by7RLtkvht hnxJwtjh8bdY51BBgBq8TGM= X-Received: by 10.28.5.145 with SMTP id 139mr4291022wmf.89.1518471436070; Mon, 12 Feb 2018 13:37:16 -0800 (PST) Received: from localhost (112.68.155.104.bc.googleusercontent.com. [104.155.68.112]) by smtp.gmail.com with ESMTPSA id y11sm8163514wrh.30.2018.02.12.13.37.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 13:37:15 -0800 (PST) From: Junio C Hamano To: Linus Torvalds Cc: Stephen Rothwell , Mauro Carvalho Chehab , 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> Date: Mon, 12 Feb 2018 13:37:14 -0800 In-Reply-To: (Linus Torvalds's message of "Mon, 12 Feb 2018 13:15:04 -0800") 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 Linus Torvalds writes: > On Mon, Feb 12, 2018 at 1:00 PM, Stephen Rothwell wrote: > > The problem, of course, is that since git is distributed, git doesn't > know who is "upstream" and who is "downstream", so there's no > _technical_ difference between merging a development tree, and a > development tree doing a back-merge of the upstream tree. > > Maybe it was a mistake to make signed tag merges non-fast-forward, > since they cause these kinds of issues with people who use "pull" to > update their otherwise unmodified trees. > > I can always teach myself to just use --no-ff, since I end up doing > things like verifying at the signatures anyway. > > Junio, comments? I have a slight suspicion that allowing 'pull' to fast-forward even when merging a signed tag when it is pulling from a configured default remote for the branch the user is on, and otherwise keeping the current behaviour, would make majority of people from both camps happier, but I also have a strong conviction that it is being too clever and making it hard to explain to people to do such a dwim that tries to guess which way is 'upstream'. Another clue we _might_ be able to take advantage of is that when upstream maintainers merge a signed tag, we do *not* fetch and store the tag from downstream contributers in our local repository (it is likely that we have --no-tags in remote..tagopt), but when downstream contributers sync from us with "git pull", they do fetch and store our tags in their local repository. So "git pull $somewhere $tag" that defaults to "--ff" when the tag gets stored somewhere in refs/ (or more explicitly, in refs/tags/) and defaults to "--no-ff" otherwise (i.e. the tag is fetched only to be recorded in the resulting merge, without ever stored in any of our refs), might be a good balance. And it is easy to explain: "We realize that it was a mistake to unconditionally default to --no-ff and we are reverting the default to --ff, but with a twist. When we tell 'pull' to grab a tag, if we do not store it anywhere in our local ref space, that would mean the tag is totally lost if the pull fast-forwards. That is why we still use --no-ff in such a case."