Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2894455imu; Fri, 23 Nov 2018 16:53:10 -0800 (PST) X-Google-Smtp-Source: AJdET5dVeFiw07G5uWcutC2fY6fMpXctuHRYVuaMJySAaK9rwtLzoXN+arouy7PxH00MOr5NC85x X-Received: by 2002:a62:704a:: with SMTP id l71-v6mr18167145pfc.68.1543020790174; Fri, 23 Nov 2018 16:53:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543020790; cv=none; d=google.com; s=arc-20160816; b=siPg3LtuqfNyBjog6f+RGxcw9w4vTRd7LZO3qgf7lEF0lyU/Ro+JeO7l5u79ljqbSu dGbvrn+o1/nIZ3j5ptHdxL1pjRuETUipPYTn+aGQMvlE5vU6DVb6fUkeGrJT1ATCOK9U fVEH0AvmSNUl0jAocTz60yS1yAvcTe+x3rmBbmfYb7IfWE6W1m3fNp4mecYyoT84yWe9 MVBjto58ZFnBbzdo2mT8SjvQ+c4odUyWu8xIgjcLdELrYORe6DxnFWYOwofzzzKDmJL0 VUzMBFwCi69x04NqUJwciHHkE1AMMUBkTxtdOE8xd5IwIGLwREUV5jokuy9V9oKhH5r/ RU0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:in-reply-to :user-agent:references:subject:cc:to:from:dkim-signature; bh=KxXVsiTwhT+Sl2mN0fwtbcSfNM4w1wCbGd/a/zne9n8=; b=Pzcuf+g+9xprHEeXiq01IIEqPFxkxWjUr5vdBAzRH1ZwO5cyf2iPa8hNuGTqb5slr1 x5yOiySz61ffD3/5DGFJcjcRO1VgRJS5DyGd3UbF/W/OeykHt3zMcK+vf+bJfVdLnx1w TfnapZRDlkAiRo+bG7ebYJQQt0E/FtzilHoBgFPsBfFOZP3ARNyojijicwK9TJPgK2nS Fh/zVj5VKEPZ2KLmAeAUbJ0yPqztQrov82+Q2vrSbOKIgrbMP/t9Tc2Xo58EK5KBqxqa Hin4EKf71pZ1/qbjOSDaxslUMwF1h72MGF88URrQKyzmGqpUjCBFALlgX42mG9u6pTsn v+Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DALXly6r; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9si29994664pfl.45.2018.11.23.16.52.56; Fri, 23 Nov 2018 16:53:10 -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=pass header.i=@gmail.com header.s=20161025 header.b=DALXly6r; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438009AbeKWCic (ORCPT + 99 others); Thu, 22 Nov 2018 21:38:32 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:39832 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391889AbeKWCib (ORCPT ); Thu, 22 Nov 2018 21:38:31 -0500 Received: by mail-wm1-f66.google.com with SMTP id u13-v6so9602978wmc.4; Thu, 22 Nov 2018 07:58:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:user-agent:in-reply-to:date :message-id:mime-version; bh=KxXVsiTwhT+Sl2mN0fwtbcSfNM4w1wCbGd/a/zne9n8=; b=DALXly6rwcjqQH5b50tFZf8gxOLN8RvlWjO2Tiz8RBQyGdd8AXAMsxQMlJsV1BCSWZ 61teEMfNSKGWMOSF06Qx/y5Lb7YZBvOBHYHhOQjFD4Ge/mPNYeGQ0aBfuManZf3pWD1H nmshGK26EEj+OH5ubKZV/t1WF65pIMY+4fZZIpOjxj5ak0DeP3EENhRav5hC61uYkc3H gKDKrFiq+pQFCYN2ooHIg5XJ4bppelwg8rVyX929cJSXkezhJI8VKKkWjVGQertvvwSo ZSk3PLcErbgdj0RjuDYOOdmuOrCZ4nbHobs84LfUgyHKmvB3klXXwhLqfkmhTBGi1sD9 J3uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:user-agent :in-reply-to:date:message-id:mime-version; bh=KxXVsiTwhT+Sl2mN0fwtbcSfNM4w1wCbGd/a/zne9n8=; b=Js+p9AxzWgghnAnfnBGyCCkEWmtvBa6+UJA+z/8CQm2NYQAm4mv+7qlhqw2yugXUf/ 2DFbG8JBzI127yEmPnTEFtQlWJM/Pg3tABngzNA653nStgGdWOLzlr438SdX+GzEzrG7 fLAsFmQEOOTz/yqvn8KP3INTBmlpC59N5uRgBUnFXO2hIeBCeMHcUPPwctj5EJQJI6Em lLq3UnyCu4s6MBs9nq4MOyrm4PcYicd+kl9yVW/K8LcLTXpdenL11eBUvqREiv3qeR65 1M6wDUzD+SEewV5AUKVwZCqH6eutMNgeqc1jYGLyG/wXIc2os9Eig7mJm5fYBJvv/2er EOOw== X-Gm-Message-State: AA+aEWbNyv40BJ++ibDWNR4ASaketAIxyKeYK0O6SSWCA5+Dq7sflx/l au5pApTupM5BbSYVndr5o97JgzoaQ9g= X-Received: by 2002:a1c:c7cd:: with SMTP id x196mr1998245wmf.12.1542902312798; Thu, 22 Nov 2018 07:58:32 -0800 (PST) Received: from evledraar (proxy-gw-a.booking.com. [5.57.21.8]) by smtp.gmail.com with ESMTPSA id e8-v6sm3383226wmf.22.2018.11.22.07.58.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Nov 2018 07:58:32 -0800 (PST) From: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason To: Junio C Hamano Cc: git@vger.kernel.org, Linux Kernel , git-packagers@googlegroups.com, Eric Sunshine Subject: Re: [ANNOUNCE] Git v2.20.0-rc1 References: User-agent: Debian GNU/Linux testing (buster); Emacs 25.2.2; mu4e 1.1.0 In-reply-to: Date: Thu, 22 Nov 2018 16:58:31 +0100 Message-ID: <87ftvt14uw.fsf@evledraar.gmail.com> 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 On Wed, Nov 21 2018, Junio C Hamano wrote: > * The "--no-patch" option, which can be used to get a high-level > overview without the actual line-by-line patch difference shown, of > the "range-diff" command was earlier broken, which has been > corrected. There's a regression related to this that I wanted to send a headsup for, but don't have time to fix today. Now range-diff in format-patch includes --stat output. See e.g. my https://public-inbox.org/git/20181122132823.9883-1-avarab@gmail.com/ Preliminary patch: builtin/log.c | 3 +++ t/t3206-range-diff.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/builtin/log.c b/builtin/log.c index 0fe6f9ba1e..fdaba480d2 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -1094,9 +1094,12 @@ static void make_cover_letter(struct rev_info *rev, int use_stdout, } if (rev->rdiff1) { + const int oldfmt = rev->diffopt.output_format; fprintf_ln(rev->diffopt.file, "%s", rev->rdiff_title); + rev->diffopt.output_format &= ~(DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_SUMMARY); show_range_diff(rev->rdiff1, rev->rdiff2, rev->creation_factor, 1, &rev->diffopt); + rev->diffopt.output_format = oldfmt; } } diff --git a/t/t3206-range-diff.sh b/t/t3206-range-diff.sh index e497c1358f..2e913542f3 100755 --- a/t/t3206-range-diff.sh +++ b/t/t3206-range-diff.sh @@ -248,8 +248,10 @@ test_expect_success 'dual-coloring' ' for prev in topic master..topic do test_expect_success "format-patch --range-diff=$prev" ' + cat actual && git format-patch --stdout --cover-letter --range-diff=$prev \ master..unmodified >actual && + ! grep "a => b" actual && grep "= 1: .* s/5/A" actual && grep "= 2: .* s/4/A" actual && grep "= 3: .* s/11/B" actual &&