[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 11 Nov 2018 09:41:40 -0800
From: Genki Sky <sky@...ki.is>
To: Alexander Kapshuk <alexander.kapshuk@...il.com>
Cc: schwab@...ux-m68k.org, briannorris@...omium.org,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
dianders@...omium.org, Guenter Roeck <linux@...ck-us.net>,
lists@...dbynature.de, linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] scripts/setlocalversion: Improve -dirty check with
git-status --no-optional-locks
Hi Alexander,
On Sun, 11 Nov 2018 16:48:38 +0200, Alexander Kapshuk <alexander.kapshuk@...il.com> wrote:
> Piping the output of the git command to grep and using the return status
> of grep as the test condition within the if block, would be sufficient
> to determine whether or not '-dirty' should be printed.
>
> Sample run:
> % if git --no-optional-locks \
> status -uno --porcelain \
> 2>/dev/null |
> grep -qv '^.. scripts/package'
> then
> printf '%s' -dirty
> fi
I don't think this works well for us. We need to check whether
--no-optional-locks is available before using the output to determine
whether the tree is dirty or not. If it's not available, we have to
fall back on diff-index. Let me know if I'm misreading you.
Powered by blists - more mailing lists