Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp75518ybm; Mon, 20 May 2019 12:09:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyiUP8IHPKCmwf+BdVx6R1xGYwh/ZzBB9ih0tsmP/fYW57ENh057udSv3a8o621GT7i39Vy X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr27402227plk.85.1558379380763; Mon, 20 May 2019 12:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558379380; cv=none; d=google.com; s=arc-20160816; b=C/74fbMk8ejMNYZ6Olk7AiBQDwHhfA18XwS7huasxtwa/dB7GUzQiQuAvZd22BAmUj 3yjOVdldCJFku7Y6R+zS6GDKlC4KY+FuWEwk8qgFMrJr/VRXOzq5mMjz+Iyg4tv/D/N5 TPlAgXLN/SMQ+1EwezaOHrUIUbX/FQ7WUFU5qOoRmhJ6hfI6wrTLMK7XG9ZKWpwwiOXo dFR6lf3mgaiKUS+wOIBnHXYrQGVKVTtVK8Hha6GLSddq/xnW/ykEc2y85YsHhu5wIqRd Mxlg9GDNdI67dvFgBOmbdisDh4dWVl8+3rK2sw4+1JZImAvjGlH6ZPruBWfoC4uLEDjt 4Mow== 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=QzZE9jFbHqOGJKb7odntY6nSTCezqxIRWPNodlHk2xo=; b=NCHDsFphHi188TWvNL+LnfDvKwRXaWdGyp1ufOHv3l2tAMU3GonV68vaoToJU7QKBl P3ZQFQjw1copAsJbqsVHm+JIZjzbfFgcBzGhMcaG/bULkvM3Tjymr6LGoqlqo9BVwnEl IlxxrkgG9uUoom4Ho6AD06EW04f+kZo2nvJ8fk60FnhJGHjhoF6K5gCwCdndRdtEVtxg xvDyhl9KJnTrF7j1ymda5okg+RbxLIM7lISUJZ+iOJvTzS2Tp+LYGORAvbGqXGg6V7JQ /tsqQHuLfZImiQmgfZD8bmqm2RPhXSoPC1OFKJiqldZCtSfN6ULorxhEZcIQ3pOdxepC r7dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@atlassian-com.20150623.gappssmtp.com header.s=20150623 header.b=CBIza3B1; 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=atlassian.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97si18811310plc.181.2019.05.20.12.09.25; Mon, 20 May 2019 12:09:40 -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=@atlassian-com.20150623.gappssmtp.com header.s=20150623 header.b=CBIza3B1; 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=atlassian.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726586AbfETTGT (ORCPT + 99 others); Mon, 20 May 2019 15:06:19 -0400 Received: from mail-io1-f51.google.com ([209.85.166.51]:43978 "EHLO mail-io1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726539AbfETTGT (ORCPT ); Mon, 20 May 2019 15:06:19 -0400 Received: by mail-io1-f51.google.com with SMTP id v7so11876633iob.10 for ; Mon, 20 May 2019 12:06:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=atlassian-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QzZE9jFbHqOGJKb7odntY6nSTCezqxIRWPNodlHk2xo=; b=CBIza3B1gqmWZ19UAfEjcgM1l7DpiemU8uY4yUS22ENov5JFyxsZ3CBksQYSdxP3fY 4MFg3eevc5IWAbIwbrAOTsswjBFfaH+0BBTcnQ4ayVDU2zVvSEi13iL0Kq0aduCc2Yfx 8yaK18JSItLIa8GLI1v1J02rpFGUD0P+y6PhlUWVLWCXiWnDA75F28HRHyXjh+Ie+c9g y5E6zVLvOHr6qieIMlH4FERkw3WmsRIfzaMZYZIMv5mPCzNGPFzy5hkzMSmS/e6bYCxX o4GrOZxuj85UcljKrEOIzz1c1mcYUR6cFb7e9syLlshs4GYo5nJclkGkWQZAsWh7LnUY o7+A== 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=QzZE9jFbHqOGJKb7odntY6nSTCezqxIRWPNodlHk2xo=; b=YBJaJP3E7bbX9EwBqrePPoy0WX17Uz9qYWbvTynRXyobZ82gFviaY47R3Yr54XuuLp oLhfUSwJdfw/y9xrRuMHnFsBI56am2g+veFyaJIcpML57fYedFp443+rzlXqe7Au7crG 2U29mGCoX0Dbx8P2bEAQpq2ZBrEQ2UNSRtotnNalOhNWhh4ZXTq3VgZdb2Rguo4qU46y abNpQfaUoR4bsNy8YMcq3VgNyj2cJ0PEqV0qOT5OKXj2muyEDSL4AT8k2cm1qlL/jvj8 v4CPBfCp2pFKo1QknB39fR0RXi23ap6v/vOLPBBURVjIP0vNc9Wl6oKTywwFTbIPXZsy jjAg== X-Gm-Message-State: APjAAAUcDgAVd2YbRrfKRTZvW6PddAsydWG0GNGDd5KYlCj8GMaCM3jV pkd/ZVkDq+UzAQeoNZHPNCfK6f5letrHNXYksfTcKA== X-Received: by 2002:a05:6602:95:: with SMTP id h21mr20536731iob.109.1558379178175; Mon, 20 May 2019 12:06:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bryan Turner Date: Mon, 20 May 2019 12:06:07 -0700 Message-ID: Subject: Re: [ANNOUNCE] Git v2.22.0-rc1 To: Junio C Hamano Cc: Git Users , Linux Kernel , git-packagers@googlegroups.com 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 Sun, May 19, 2019 at 10:00 AM Junio C Hamano wrote: > > * The diff machinery, one of the oldest parts of the system, which > long predates the parse-options API, uses fairly long and complex > handcrafted option parser. This is being rewritten to use the > parse-options API. It looks like with these changes it's no longer possible to use "-U" (or, I'd assume, "--unified") without adding an explicit number for context lines. Was it not intended that a user could pass "-U" to explicitly say "I want a unified diff with the default number of context lines"? Because it's always worked that way, as far as I can tell (certainly since early 1.7.x releases). Is it possible, with the new parse-options code, to restore that behavior? Removing that is likely to be a pretty big disruption for Bitbucket Server, which has always explicitly passed "-U" to "git diff". If the community wants to move forward with the change, I understand. I'm not trying to roadblock it; I'm just listing an explicit example of something that will be significantly affected by the change. Perhaps Git 2.22 could emit a warning about the change in behavior and then a subsequent version could turn it into an error, to give us (and anyone else relying on this behavior) more time to make adjustments? I'm aware a unified diff is the default output, but many commands have flags that essentially tell Git to do what it would do by default. That can help counter changes in the default, as well as safeguarding against new config options that allow specifying a different default (as it were). For example, "git diff" has "--no-color", which could override configuration and essentially applied the default behavior--until the default configuration was changed in 1.8.4 from "never" to "auto". By using "--no-color", even though we didn't "need" to, we were protected against that change in the default. Best regards, Bryan Turner