Received: by 10.223.185.116 with SMTP id b49csp2824098wrg; Mon, 12 Feb 2018 16:23:04 -0800 (PST) X-Google-Smtp-Source: AH8x226KDWhGuVwhq78bZOYayKO7PKioGW28XJyTRvTwApS4BfZAc2jmylzEO26zCP5acesHbg3n X-Received: by 2002:a17:902:b109:: with SMTP id q9-v6mr7493461plr.340.1518481384175; Mon, 12 Feb 2018 16:23:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518481384; cv=none; d=google.com; s=arc-20160816; b=GQj9T8ydWNeOX7nKgAl2FsGa/PsvSfrHTET+ju9vr3NvsBwLk1R2CztzePln18BHil cpKta784unPTsPbiupOZ++hkXxobK3NzHn25v6JL4w/HqWqesvR3pLVLwcpVvXpGprSX G+jigADAeXNGbTy9+tK+6+RbzOpFaGcsCWwK1StJrwALpkM4e+4OjGGb6iA7/dhupMsx oqyVhFG2sNeJqmPMww+cJ9Vpb2JNhsJomcFcZbxI0B3iUcTnUQA4gu85ot1V/Qgu1DOJ vEYXZJ7YEDW13/797Oxvg+9smDQkMJcG02hqNmSXGzqDGZxjUOwOrKx9yb5WjIhkdyI/ oRzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=6icAyiMo+vzcYN3TqQL4A9cBwQlQoZX41kZ6+TkSm8Q=; b=edv4HYZzgH6VsrGbU30sExpsDiWxH4GDNx9TfjHgo7KIo7yhq3wKwRsKAiqsYxj3X0 ZF5ixlKwx7lHNFgGqd/vkFpFv1euu8+61C3Bcl9d6MvTK1mkWAZgNftGmkmCdEzzHPPI Ehh47CS+RQgQK/qIcLoI19fvcezK5ottglTusFXcvj4W/IKQ4nqb63U4nJP37pYOR5nX CxX9Nw/HhcQVPm2xZOjsQmQSSGaUWKcsAiRoZNK5KBQkXT4mcXIv2iUUymGdRmM/k2dw 7qrqmXsDTxinSvnIqH3rxkteTjudynVLetdAZTAWxweVl05eo5lgR3KG/xaL9FoUwKBZ 5Khg== ARC-Authentication-Results: i=1; mx.google.com; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si3409169pfg.69.2018.02.12.16.22.49; Mon, 12 Feb 2018 16:23:04 -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; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932886AbeBMAWN (ORCPT + 99 others); Mon, 12 Feb 2018 19:22:13 -0500 Received: from osg.samsung.com ([64.30.133.232]:54089 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932743AbeBMAWL (ORCPT ); Mon, 12 Feb 2018 19:22:11 -0500 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id CD2C028A52; Mon, 12 Feb 2018 16:22:10 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h_VLIdPqcHIm; Mon, 12 Feb 2018 16:22:03 -0800 (PST) Received: from vento.lan (unknown [177.159.244.41]) by osg.samsung.com (Postfix) with ESMTPSA id 3F2BA28A47; Mon, 12 Feb 2018 16:22:01 -0800 (PST) Date: Mon, 12 Feb 2018 22:21:57 -0200 From: Mauro Carvalho Chehab To: Junio C Hamano 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 Message-ID: <20180212222157.0a3bd472@vento.lan> In-Reply-To: References: <20180213080036.3bf3a908@canb.auug.org.au> Organization: Samsung X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, 12 Feb 2018 15:42:44 -0800 Junio C Hamano escreveu: > Linus Torvalds writes: > > > And some maintainers end up using multiple repositories as branches > > (the old _original_ git model). Again, you can just use "git fetch + > > git reset", of course, but that's a bit unsafe. In contrast, doing > > "git pull --ff-only" is a safe convenient operation that does both the > > fetch and the update to whatever state. > > > > But you do need that "--ff-only" to avoid the merge. > > OK. I guess it is legit (and semi-sensible) for downstream > contributors to "git pull --ff-only $upstream $release_tag_X" to > bring their long-running topic currently based on release X-1 up to > date with respect to release X. It probably makes more sense than > rebasing on top of release X, even though it makes a lot less sense > than merging their topics into release X. > > As you said, pull of a tag that forbids fast-forward by default is > rather old development (I am kind of surprised that it was so old, > in v1.7.9), so it may be a bit difficult to transition. > > There is > > [pull] > ff = only > > but pull.ff is quite global, and not good for intermediate level > maintainers who pull to integrate work of their downstream (for > which they do want the current "do not ff, record the tag in a merge > commit" behaviour) and also pull to catch up from their upstream > (which they want "ff-when-able"). They need to control between > ff=only and ff=when-able, depending on whom they are pulling from. 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. The reason is that I keep locally a cache with several tree clones (in bare mode) s that I bother enough to cache (linus, -stable, -next), as pulling from BR is time consuming, and I want to do it only once and use the same "cache" for all my git clones. I have a few git workdirs for my upstream work, but, as a patch developer, I also have "independent"[1] git repositories. [1] Due to disk constraints, the clones actually use --shared. So, the common objects are actually stored inside a single tree. Thanks, Mauro