[Virtio-fs] [PATCH] cleanup: Tweak and re-run return_directly.cocci

Philippe Mathieu-Daudé philmd at linaro.org
Tue Nov 22 15:03:02 UTC 2022


On 21/11/22 17:42, Max Filippov wrote:
> On Mon, Nov 21, 2022 at 6:01 AM Markus Armbruster <armbru at redhat.com> wrote:
>>   .../xtensa/core-dsp3400/xtensa-modules.c.inc  | 136 +++++-------------
>>   target/xtensa/core-lx106/xtensa-modules.c.inc |  16 +--
> 
> These files are generated and were imported from xtensa configuration
> overlays, they're not supposed to be changed.

Tools can get the repository file list using 'git ls-files', which
itself support file pattern exclusion [*].

We can create i.e. 'scripts/imported-files.txt' with:

   linux-headers/
   target/hexagon/imported/
   target/xtensa/core*
   tests/tcg/mips/user/

Then use 'git ls-files --exclude-from=scripts/imported-files.txt' ...

[*] 
https://git-scm.com/docs/git-ls-files#Documentation/git-ls-files.txt---exclude-fromltfilegt



More information about the Virtio-fs mailing list