Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp247646imu; Thu, 8 Nov 2018 18:57:15 -0800 (PST) X-Google-Smtp-Source: AJdET5f5yXpLYZ1/mdrB4d1BZJ2cwJn0BNHh8a84z75lYkAm3K1s2yh3sCSiaGGsZA1esUjkpOgf X-Received: by 2002:a17:902:b70c:: with SMTP id d12-v6mr7263382pls.288.1541732235013; Thu, 08 Nov 2018 18:57:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541732234; cv=none; d=google.com; s=arc-20160816; b=sPQSDR46Msf7L9KB5gBKZG9cQ5i+NiI+OAxqvHGpoeKdIMjvZhg5eXoZvfLhmRSNvU CJBbLL+0WvDEXh0RQVq2c6AEeQJfwBMsHaReR1encNviBhwEeI8QUhaWzRXv/FOFZKyL aur1Vw9fY5V7e7kBdDUphAT0Q+bMVS8+ETK+yKEr0G8Mhh5y38vZTCASIa8vDP9tOMdF le6qRyVOZCQLU49hb12Lgbq/iMCiKnhZjr3eaH6wR6LN/wzlj7cX2ft0ZBcFqJ62fhHy 6+v68SrlSCGm0+PXFaBSusr+rtW5IUIJKO8evLe+n8ufy8UOXasAorWe0K7G3nAe4O0v FC2Q== 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:dkim-filter; bh=K3uyO8zUpB0oX7XdAwUVCiDQgtMnUDjV4A4PYE8o7Ko=; b=iGcgOIlmSGxOnwnutvVdM2ybtaJslwN3drDTo0+tvKuU7au9nKFKx7la3bc+60r9FB 8S7Xp4y2m8HZs9tjh9Y0Ed0eeoXaAYJdtNWEx2ZT3+/cWAUaNO9bEMK+bUcHFP0a5Esw lGaOt8bGb58mju1N6LDzSaZnwx5F1QOzOw+6HPfRlZsmm9/TpymSgO2+fOl28wYrBvLG i5f2Ogm5ZlWM2XM18VP/RII04jr68OMvH8tcm/ITpCJl9CAh/vyE6PvFyDX3mz+b+2SL neKveBy+oMFhS1B6PjQ/mQqbFwjdIqya/O9C4r7thyIzF0lz7eISgvK5y4uuAi8TEQCm i39Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=reOBAk4q; 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 r11si5542105pgg.327.2018.11.08.18.56.59; Thu, 08 Nov 2018 18:57:14 -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=@nifty.com header.s=dec2015msa header.b=reOBAk4q; 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 S1727634AbeKIMew (ORCPT + 99 others); Fri, 9 Nov 2018 07:34:52 -0500 Received: from conssluserg-01.nifty.com ([210.131.2.80]:54898 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727390AbeKIMew (ORCPT ); Fri, 9 Nov 2018 07:34:52 -0500 Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com [209.85.222.49]) (authenticated) by conssluserg-01.nifty.com with ESMTP id wA92u3rS015674 for ; Fri, 9 Nov 2018 11:56:04 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com wA92u3rS015674 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1541732164; bh=K3uyO8zUpB0oX7XdAwUVCiDQgtMnUDjV4A4PYE8o7Ko=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=reOBAk4qv9Ia7JFPTDd1TcNs+ZD3146s+2P5hNtTbCzTHnj3LsysRw8BI4CERWxsF BQll06tDCXfVz8wCSB7awiBveBh2OC9LgctmLftz8Z3T1KaAslJ+NjkXVMT/oWYHEE h4WpRJrhs6lq4strVJQ3fprL0794yevu/4LYyYmOugYXuK4vuQI5YM3hdrb473Qr6y SccCFl3qwQyZ1ZWbEmVNAr6C/nnmX3blZptobyV3LnXw8Ly4nD72qB7zf28aALVBSE Okh6ea0r5jeweMmWpeObUdhTfC4g8IDT5kkJj3P/imrQuasJjGoCpjbUx/CwodicM+ 0OELXZmndL9bw== X-Nifty-SrcIP: [209.85.222.49] Received: by mail-ua1-f49.google.com with SMTP id d8so147084ual.2 for ; Thu, 08 Nov 2018 18:56:04 -0800 (PST) X-Gm-Message-State: AGRZ1gJCBLSzGqL/Cm+Kv8EOZ3oaajfZrIQ9Y7iPk0XJpAO+CutqZqDe IMGaHRB1xmnf9YtbsY3rXHPqpiJQv8HoIJ2tK4k= X-Received: by 2002:ab0:6705:: with SMTP id q5mr3425576uam.89.1541732163017; Thu, 08 Nov 2018 18:56:03 -0800 (PST) MIME-Version: 1.0 References: <1541527838-4585-1-git-send-email-linux@roeck-us.net> <20181106.192305.406697677@genki.is> <20181107022156.GA254567@google.com> <20181107184435.GA168339@google.com> <20181107.204358.257636196@genki.is> <20181107205514.GB12273@roeck-us.net> <20181107.210731.330601031@genki.is> In-Reply-To: From: Masahiro Yamada Date: Fri, 9 Nov 2018 11:55:26 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Revert "scripts/setlocalversion: git: Make -dirty check more robust" To: Brian Norris Cc: Douglas Anderson , Genki Sky , Guenter Roeck , Christian Kujau , Linux 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 Thu, Nov 8, 2018 at 12:20 PM Brian Norris wrote: > > On Wed, Nov 7, 2018 at 1:18 PM Doug Anderson wrote: > > On Wed, Nov 7, 2018 at 1:07 PM Genki Sky wrote: > > > On Wed, 7 Nov 2018 12:55:14 -0800, Guenter Roeck wrote: > > > > Ubuntu 16.04 ships with git version 2.7.4. > > > > > > Okay. I guess --no-optional-locks is a no-go then. > > > > In theory you could wrap it. If passing git with > > "--no-optional-locks" doesn't work you could fall back to the old > > code? That would mean only people with newer git would get your new > > feature and everyone else would stick with the pre-existing behavior. > > +1, that's what I was going to suggest. Presumably older git would > give non-zero exit status for unknown flags, and we take that as > signal to try to the old way? I also like this idea! I will pick-up this revert patch soon. Brian, Could you please send a patch on top of that? Thanks! -- Best Regards Masahiro Yamada