Commit 379448d
committed
Make BuildTree read-only: never write to stack.json from graph/view
BuildTree was silently rewriting orphaned branches to trunk and saving.
A read-only command (graph, view) should not mutate state.
Now only modifies in-memory config for display, never calls Save().1 parent 52598c9 commit 379448d
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 65 | | |
71 | 66 | | |
72 | 67 | | |
| |||
0 commit comments