Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1772150ybg; Sat, 19 Oct 2019 02:11:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMpF6DD2NPhXUqhFj7u5gtyOE6WWPQI8cwnSWhuNL5sgl1JB9qInSR5z1uHvtTfTZ6TvAD X-Received: by 2002:aa7:db55:: with SMTP id n21mr14097710edt.1.1571476261254; Sat, 19 Oct 2019 02:11:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571476261; cv=none; d=google.com; s=arc-20160816; b=dmJN7UYlh1uMNkTtKu7KF6oHGa436haehsi117MjcxMPdcttuC19d2ub11H4+64j8G YVNvOHRoTOdGGNp2R5TBDk98/D57e9qB/34WMeFoqZKTiZVvBOy251KXaPKMJdSdAzlg Mnubr5BptlOo4do+R3xl4g2ADCJIDqS+UWTxbwERc+sWt08Lic0Zd7Z8/MkP7EBJPLIC hDe1jTTEhzg1Pb2cJkUbjO5tP2JjrwL6pWpuGC09PoIKeGFB3ZBx0l0pRlfNsbVZjLrx MQIQDyEoy8UxYLmhWVtaSHsBybk94SeHIda152ARGr396DdeNYoIgKezBjunNXdW8gh3 zDmQ== 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=gfI0AJSthc554vKx2lGALI0At1GBVKK3lR5urVM2u5o=; b=BTdI/G5kOfTlJTPne90nWALq2RUT9jqTB/W5/hCjml7FVwhxOrjKX4UU8w6AU76p4r vy1kbJR2bD1+4QBCGjHAKlIYXNJjIjmleJMT5GfzCUli7BU9Aoq127F83kZABS1Q4arZ hOeDNE1MoiFKzFWhwpB2Y2XI4Vg3xIq/uN1vblghef2YbxAk0/t+pIKQTwd14uNPvZvG +GY/oRB/YzEF2gtByBPaCHx72BuX/RIkqVV4TAPYUf1GvkyX52DBtnpPounMMritBrHd 9mB+VtMwAvQHFj8XYIJJMbDIxpWSQV4ccG29bg2ZBGlXVjOUhko1M5YVuaKbHhoqf1Qx GVRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=VgncGr5y; 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 x25si5156944edr.128.2019.10.19.02.10.37; Sat, 19 Oct 2019 02:11:01 -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=VgncGr5y; 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 S2505800AbfJRTR4 (ORCPT + 99 others); Fri, 18 Oct 2019 15:17:56 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41525 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388138AbfJRTRz (ORCPT ); Fri, 18 Oct 2019 15:17:55 -0400 Received: by mail-lj1-f193.google.com with SMTP id f5so7299097ljg.8 for ; Fri, 18 Oct 2019 12:17:53 -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=gfI0AJSthc554vKx2lGALI0At1GBVKK3lR5urVM2u5o=; b=VgncGr5yjc//ouu/7v1mSUHDd6fZju6z/Ht4L7uJcHz8C5ZjHqzHf/QU+HEdUYxEO2 0wbGYwcxszbE4giQskHtZ5f0P2usEjfcHedLpFS+fuP/DSwO6J6N7ZCr6xa/ushP5O/t SIhcZZVoAesRsxU+OQYIUywvth6XYUmMSzw1s= 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=gfI0AJSthc554vKx2lGALI0At1GBVKK3lR5urVM2u5o=; b=l0kCWVC1VWWIUa9n/BkDMDQTTA18N7atfCL77cVCsvoRhNlH5tT3yyZxu4jU5Hlt0U ETUCwFUAIePEFMSDVnhhVSlJSuE9jqELjcyvRXkS9m4ujVTemrHgWfa6RWT47tNu99iM 4XxATepXRi9XzPGAmFxtWkSp9bY0A+glIEzPGH7soDgzhaCE3A/OzGnegNq9zMsbWOcS cLJADe2QpMlJSddYKE7GinqDZLtmv2+ed6sqbHzTs6GLIVIGDOwdtuPj1+B75mKCURzx +IYO7XFKHkA+SAKzHhdZ89Eb5RUOfJ12QDzvPib60w0J0Ln3VUxChOF8fkA2J9OpjA2d QnBQ== X-Gm-Message-State: APjAAAWZz0MSrmUmcg4EJ+Yg5OUjZzzMbVdj3TfV/BxGuZVqcF137OGn hi8kmPLy0Nrzp7gmHx76xQ+X0aBC12g= X-Received: by 2002:a2e:1214:: with SMTP id t20mr7068307lje.191.1571426272164; Fri, 18 Oct 2019 12:17:52 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id m21sm2761335lfh.39.2019.10.18.12.17.50 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Oct 2019 12:17:51 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id v8so4929418lfa.12 for ; Fri, 18 Oct 2019 12:17:50 -0700 (PDT) X-Received: by 2002:a19:f709:: with SMTP id z9mr7071645lfe.170.1571426270371; Fri, 18 Oct 2019 12:17:50 -0700 (PDT) MIME-Version: 1.0 References: <20191017234348.wcbbo2njexn7ixpk@willie-the-truck> <20191018174153.slpmkvsz45hb6cts@willie-the-truck> In-Reply-To: <20191018174153.slpmkvsz45hb6cts@willie-the-truck> From: Linus Torvalds Date: Fri, 18 Oct 2019 12:17:34 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] arm64: Fixes for -rc4 To: Will Deacon Cc: 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 Fri, Oct 18, 2019 at 10:42 AM Will Deacon wrote: > > Thanks, that's helpful to know for next time. I guess I'm most surprised by > the discrepancy between the shortlog and the diffstat, whereas I intuitively > expected them to be generated in the same way. So logs and diffs are fundamentally different. A log is an operation on a _set_ of commits (that's the whole point - you don't list the beginning and the end, you list all the commits in between), while a diff is fundamentally an operation on two end-points and shows the code difference between those two points. And the summary versions of those operations (shortlog and diffstat) are no different. So as a set operation, "shortlog" has no issues with multiple merge bases. Doing a shortlog is still just a set difference between your commits and the upstream commits, and the number of merge bases is irrelevant. "List all commits that I have, but upstream doesn't have" is a very straightforward and natural set operation. But as a "two endpoints" operation, diffstat has real problems any time you have more than two endpoints - when you have multiple merge bases, you fundamentally have more than two endpoints: you have all of the merge bases, and then you have your end result. What you doing the merge does is to turn the multiple merge bases into just one point: the thing you merged against now becomes the common merge point, and now you have a "two endpoints" for the diffstat: the thing you merged against, and your end result are now the two points that you can diff against. But the shortlog is always correct, because it just doesn't even care about that whole issue. Linus