Skip to contentSkip to conversation

gitignore: Ignore python cache directories

PATCH Applied Michael Ellerman 2 participants 2 messages Jun 2 – Jun 15

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gitignore: Ignore python cache directories

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.

---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -0
index 94caeb90..fc27e747 100644
@@ -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

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi
Reviewed-by on v1 1/1 Applied
#1 lore raw
Quoted 11 lines · Michael Ellerman

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.

LGTM.

Applied this patch to the riscv/opensbi repo.

Thanks,
Anup

Quoted 28 lines
---
 .gitignore | 3 +++
 1 file changed, 3 insertions(+)
.gitignore +3 -1
index 94caeb90..fc27e747 100644
@@ -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
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi

Signature · 3 lines
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi