Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4156202ybg; Mon, 21 Oct 2019 04:47:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWLL2TXiwkjk/7PvFqAr1/7k/yEGVpIbGHcCTxKlZVGXNBKyCVzGR8+jhCLg1849NpxGRb X-Received: by 2002:a50:b083:: with SMTP id j3mr24255603edd.15.1571658434922; Mon, 21 Oct 2019 04:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571658434; cv=none; d=google.com; s=arc-20160816; b=ACJaYS4h9pGAw4Zm4zuTd4KqZGryZ0MoMX1Eb0BxiH6y9JdxVPLW3QBG4d6k0to0Ol gIZO5O/KDnZmGjAp8Awju02Pz4mTMpv7IWOWeDLcybesRy5zwnHToW2EtInnEgKNcsl+ 4Ho+JBig5NEuqTG9nU60WSbSM2O7qCj0AfHzB8o4b0w7jk1CQTBObrITCiUdYaQIFIdF pusuW13GlzDfZImT0uVqH1HFCxPOHZGDBWCEjNBObhx2QuQPpd75jFpkpNu/Mu8OfWRF 0AmU9QakwQE/EZaxaOVp6G9hPvvgDdTO8W7YIgD3Sn31LbYWAdpyANT1ng4rGLzdUdi6 3Trg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Dwxj+uOUwiu2R0WFfBHrgW9ls+QdQwTPDol7q0pKZ3g=; b=fmU7SfLEYIzKn80W0WLYUu+zitlTBskVg5r/0wmp8ENl9DztLM2YzyrNEEXvkVqyfz rIjMfc5MYBtuK3Fy9oSE7cwOoj0Go2lxJp9sgWpLAfUnNLTdfHSCGGqfeLIzKVJIjjXc 7f4BfQ7BuiQ6Vni5DXnfnERFbNyrUpMkkaZreyAzIFTWaLfasIwFxI3UUucbjT//MLVt eiGBT7lD6iP4VrccrfbZhp/43BJLIHjhtnYfPOXaRP4+dRO7ceyF50CgpEX4z6QcPoKI 2D4E2NfbZpZa2/nOrSNUmHVc6qThhRMtpRk0VzltVnlsXLLYyiCxwEcrf/t2bisjVFr+ Z1NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=DiJhkOHH; 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 h40si5196018ede.176.2019.10.21.04.46.51; Mon, 21 Oct 2019 04:47:14 -0700 (PDT) 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=pass header.i=@linux-foundation.org header.s=google header.b=DiJhkOHH; 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 S1728618AbfJULpc (ORCPT + 99 others); Mon, 21 Oct 2019 07:45:32 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34803 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727725AbfJULpc (ORCPT ); Mon, 21 Oct 2019 07:45:32 -0400 Received: by mail-lj1-f194.google.com with SMTP id j19so12968727lja.1 for ; Mon, 21 Oct 2019 04:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Dwxj+uOUwiu2R0WFfBHrgW9ls+QdQwTPDol7q0pKZ3g=; b=DiJhkOHHFUpKDOyxqHB4vaKmVpAstfvhXZIH4GkcCFzoF5QWbnyBOFNNm6UpRicVgI nEoYUkbP8FlO//n5TfoPf37YJpVoTBQsy12/8bfGZf9e+74Opqtm7XODV/VV7FRUaCYG SETbygzuap2Mr/iVlQcyZCqAWCkC1rtzVkHhE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Dwxj+uOUwiu2R0WFfBHrgW9ls+QdQwTPDol7q0pKZ3g=; b=uHdsD7K1D4nBYzUZ83JbEeU7xZvQW5GpEgk7fr816EabelPG9eSWMF6yjGqHimV1Wr 6sIkay0JX+94Qn4R0trmDyDCm74/gVPx2FtsqoJdVvoJkSs/HwZWUr391ZQS9L10DdAk VLNzAzCGMJm/0BjS0ffEqaPoDeHSt95zY7afilyZihD+JUQkTNkvtrLgUXqzcJwrKSdV Z6lzXu6W95TxkUakbMq24hAIzBZuxjuIf5VSUnK5c5CxT2BCxXaKey39teTKP4L3IYkD zGzCNj9vF587BJxEFKcVGn1v48AHGE6B+n/aKqQ3lV/v9FImtP8/TFjOAbysNyFkyxML eiEQ== X-Gm-Message-State: APjAAAVPrMRgSMUf/AF5RieCkMNjilcw4MgsLRKNAROEFOVAl8i7gTRD mjkMDY4Ml87WwcXnw35MR9iADHDiqhdolw== X-Received: by 2002:a2e:9cc9:: with SMTP id g9mr14308079ljj.178.1571658329087; Mon, 21 Oct 2019 04:45:29 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id 10sm1622035lfy.57.2019.10.21.04.45.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Oct 2019 04:45:27 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id j19so12968543lja.1 for ; Mon, 21 Oct 2019 04:45:27 -0700 (PDT) X-Received: by 2002:a2e:9848:: with SMTP id e8mr14847939ljj.148.1571658327338; Mon, 21 Oct 2019 04:45:27 -0700 (PDT) MIME-Version: 1.0 References: <20191017234348.wcbbo2njexn7ixpk@willie-the-truck> <20191018174153.slpmkvsz45hb6cts@willie-the-truck> <20191021064658.GB22042@gmail.com> In-Reply-To: <20191021064658.GB22042@gmail.com> From: Linus Torvalds Date: Mon, 21 Oct 2019 07:45:11 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] arm64: Fixes for -rc4 To: Ingo Molnar Cc: Will Deacon , Catalin Marinas , Linux Kernel Mailing List , Linux ARM Kernel 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 Mon, Oct 21, 2019 at 2:47 AM Ingo Molnar wrote: > > I think at least once I ran into that and sent you a 'slightly wrong' > diffstat - and maybe there's also been a few cases where you noticed > diffstats that didn't match your merge result, double checked it yourself > and didn't complain about it because you knew that this is a "git > request-pull" artifact? Right. If I see a diffstat that doesn't match, I just look at what a non-merged diffstat would have looked like, and if that matches I know what happened. There are other reasons why diffstats won't match, of course. Like me just having merged part of the same commits from another source (or multiple trees applying the same patch). So it's not _just_ due to multiple merge bases that the mis-match can happen. > Most of the time I notice it like Will did because the diffstat is > obviously weird and it's good to check pull requests a second (and a > third :-) time as well, but it's possible to have relatively small > distances between the merge bases where the diffstat doesn't look > 'obviously' bogus and mistakes can slip through. Yup. > Anyway, a small Git feature request: it would be super useful if "git > request-pull" output was a bit more dependable and at least warned about > this and didn't include what is, from the viewpoint of the person doing > the merge, a bogus diffstat. Well, warning for it would be fairly simple. Giving the "right" result isn't simple, though, since the merge might need manual fixup to succeed. The warning you can check yourself: just do git merge-base --all upstream mybranch and if you get more than one result, you know you are in the situation where a diff from the merge base might not work (it *might* work, but probably won't). You can play around with it yourself, of course. Look at the git-request-puill.sh script, it says something like this: merge_base=$(git merge-base $baserev $headrev) || die "fatal: No commits in common between $base and $head" and you could add something like all_merge_bases="$(git merge-base --all $baserev $headrev)" and then add a warning if "all_merge_bases" doesn't match "merge_base". Linus