[PATCH] gitignore: Ignore python cache directories
Anup Patel
apatel at ventanamicro.com
Sun Jun 14 21:58:53 PDT 2026
On Tue, Jun 2, 2026 at 4:59 PM Michael Ellerman <mpe at kernel.org> wrote:
>
> Running ./scripts/Kconfiglib/setconfig.py leaves the tree with untracked
> files:
>
> Untracked files:
> (use "git add <file>..." to include in what will be committed)
> scripts/Kconfiglib/__pycache__/
>
> Add __pycache__ to .gitignore to fix it.
>
> Signed-off-by: Michael Ellerman <mpe at kernel.org>
LGTM.
Reviewed-by: Anup Patel <anup at brainfault.org>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
> ---
> .gitignore | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/.gitignore b/.gitignore
> index 94caeb90..fc27e747 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -16,6 +16,9 @@
> build/
> install/
>
> +# Python bytecode (e.g. from scripts/Kconfiglib)
> +__pycache__
> +
> # Development friendly files
> tags
> cscope*
>
> ---
> base-commit: 547a5bbda7c3ec0096a6c87809851f8c2df047d1
> change-id: 20260602-fix-gitignore-e4ca4a9bed10
>
>
> --
> opensbi mailing list
> opensbi at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/opensbi
More information about the opensbi
mailing list