Skip to contentSkip to conversation

pm-graph: ignore sleepgraph.py artifacts

PATCH Applied Yo-Jung (Leo) Lin 3 participants 4 messages Aug 25, 2024 – Sep 4, 2024 PM-graph utility

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pm-graph: ignore sleepgraph.py artifacts

By default, sleepgraph.py creates suspend-{date}-{time} directories to store artifacts, or suspend-{date}-{time}-xN if the --multi option is used. Ignore those directories by adding a .gitignore file.

---
 tools/power/pm-graph/.gitignore | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 tools/power/pm-graph/.gitignore
tools/power/pm-graph/.gitignore new file +3 -0
new file mode 100644
index 000000000000..37762a8a06d6
@@ -0,0 +1,3 @@
+# sleepgraph.py artifacts
+suspend-[0-9]*-[0-9]*
+suspend-[0-9]*-[0-9]*-x[0-9]*
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 17 lines · Yo-Jung (Leo) Lin

By default, sleepgraph.py creates suspend-{date}-{time} directories to store artifacts, or suspend-{date}-{time}-xN if the --multi option is used. Ignore those directories by adding a .gitignore file.

---
 tools/power/pm-graph/.gitignore | 3 +++

 1 file changed, 3 insertions(+)

 create mode 100644 tools/power/pm-graph/.gitignore

tools/power/pm- renamed from tools/power/pm-graph/.gitignore +0 -0

graph/.gitignore
new file mode 100644
index 000000000000..37762a8a06d6

tools/power/pm-graph/.gitignore line 3

Quoted 3 lines
tools/power/pm-graph/.gitignore new file +3 -0
@@ -0,0 +1,3 @@
+# sleepgraph.py artifacts
+suspend-[0-9]*-[0-9]*
+suspend-[0-9]*-[0-9]*-x[0-9]*

This seems fine. If you run the tool inside the tools/power/pm-graph folder I can see how it would be annoying to have all those output directories show up in git status.

maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Yo-Jung (Leo) Lin
Quoted 17 lines · Yo-Jung (Leo) Lin

By default, sleepgraph.py creates suspend-{date}-{time} directories to store artifacts, or suspend-{date}-{time}-xN if the --multi option is used. Ignore those directories by adding a .gitignore file.

---
 tools/power/pm-graph/.gitignore | 3 +++

 1 file changed, 3 insertions(+)

 create mode 100644 tools/power/pm-graph/.gitignore

tools/power/pm- renamed from tools/power/pm-graph/.gitignore +0 -0

graph/.gitignore
new file mode 100644
index 000000000000..37762a8a06d6

tools/power/pm-graph/.gitignore line 3

Quoted 3 lines
tools/power/pm-graph/.gitignore new file +3 -0
@@ -0,0 +1,3 @@
+# sleepgraph.py artifacts
+suspend-[0-9]*-[0-9]*
+suspend-[0-9]*-[0-9]*-x[0-9]*

This seems fine. If you run the tool inside the tools/power/pm-graph folder I can see how it would be annoying to have all those output directories show up in git status. (re-send with Acked-by)

#3 lore raw
Quoted 26 lines · Todd Brandt
Quoted 17 lines · Yo-Jung (Leo) Lin

By default, sleepgraph.py creates suspend-{date}-{time} directories to store artifacts, or suspend-{date}-{time}-xN if the --multi option is used. Ignore those directories by adding a .gitignore file.

---
 tools/power/pm-graph/.gitignore | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 tools/power/pm-graph/.gitignore
tools/power/pm- renamed from tools/power/pm-graph/.gitignore +0 -0

graph/.gitignore
new file mode 100644
index 000000000000..37762a8a06d6

tools/power/pm-graph/.gitignore line 3

Quoted 3 lines
tools/power/pm-graph/.gitignore new file +3 -0
@@ -0,0 +1,3 @@
+# sleepgraph.py artifacts
+suspend-[0-9]*-[0-9]*
+suspend-[0-9]*-[0-9]*-x[0-9]*

This seems fine. If you run the tool inside the tools/power/pm-graph folder I can see how it would be annoying to have all those output directories show up in git status. (re-send with Acked-by)

Quoted 1 line

Applied as 6.12 material, thanks!