Skip to content

Commit b132f27

Browse files
committed
On jt graph, keep the graph file around
Easier to then continue investigations or send to someone else
1 parent ea16721 commit b132f27

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ doc/user/README.md
100100
# Ignore .rb files at the root, it's temporary files to debug some issue
101101
/*.rb
102102

103-
# Ignore Seafoam generated illustrations
103+
# Ignore graphs and Seafoam generated illustrations
104+
/*.bgv
104105
/*.pdf
105106
/*.svg
106107

tool/jt.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2171,6 +2171,9 @@ def graph(*args)
21712171
graph = graphs.last
21722172
raise "Could not find graph in #{dumps}" unless graph
21732173

2174+
FileUtils.cp graph, 'graph.bgv'
2175+
graph = 'graph.bgv'
2176+
21742177
list = run_gem_test_pack_gem_or_install('seafoam', SEAFOAM_VERSION, '--json', graph, 'list', capture: :out, no_print_cmd: true)
21752178
decoded = JSON.parse(list)
21762179
graph_names = decoded.map { |entry| entry.fetch('graph_name_components').last }

0 commit comments

Comments
 (0)