scripts/kernel_bump: Use the git index to find the needed config files
authorOlliver Schinagl <oliver@schinagl.nl>
Mon, 18 Mar 2024 12:28:11 +0000 (13:28 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 12 Apr 2024 16:20:53 +0000 (18:20 +0200)
commitb62aafc99a6f00032c0486d96bb7b6cc0a77a84c
tree8110741230278068441709ef6fce559923fc39ac
parent8ed187e471b0f7622c8791bf688302cdfe484868
scripts/kernel_bump: Use the git index to find the needed config files

The current solution using `find` introduces a racecondition, where `find`
and `git mv` get in each others way. While this could be fixed with
more-utils sponge command (or even sort -u) to buffer the output of
find.

However, a much better approach, is to query the git index directly,
which will not change, and is far more accurate.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
scripts/kernel_bump.sh