[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241113203831.lyhmd7ssimejrxn5@jpoimboe>
Date: Wed, 13 Nov 2024 12:38:31 -0800
From: Josh Poimboeuf <jpoimboe@...nel.org>
To: Rasmus Villemoes <linux@...musvillemoes.dk>
Cc: Masahiro Yamada <masahiroy@...nel.org>, linux-kernel@...r.kernel.org,
Jeff King <peff@...f.net>
Subject: Re: [PATCH v2] setlocalversion: work around "git describe"
performance
On Tue, Nov 12, 2024 at 10:05:00PM +0100, Rasmus Villemoes wrote:
> Contrary to expectations, passing a single candidate tag to "git
> describe" is slower than not passing any --match options.
>
> $ time git describe --debug
> ...
> traversed 10619 commits
> ...
> v6.12-rc5-63-g0fc810ae3ae1
>
> real 0m0.169s
>
> $ time git describe --match=v6.12-rc5 --debug
> ...
> traversed 1310024 commits
> v6.12-rc5-63-g0fc810ae3ae1
>
> real 0m1.281s
Works for me, thanks!
Tested-by: Josh Poimboeuf <jpoimboe@...nel.org>
--
Josh
Powered by blists - more mailing lists