Re: [PATCH v2] setlocalversion: work around "git describe" performance
From: Josh Poimboeuf
Date: Wed Nov 13 2024 - 15:38:41 EST
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@xxxxxxxxxx>
--
Josh