Commit b192ae8
committed
jj-run: add JJ_CHANGE_ID, JJ_COMMIT_ID, JJ_COMMIT_TIMESTAMP env vars
When running commands, jj-run now sets environment variables with
metadata about the current change being processed:
- JJ_CHANGE_ID: The change ID (jj's unique identifier)
- JJ_COMMIT_ID: The full commit hash
- JJ_COMMIT_TIMESTAMP: ISO 8601 timestamp of the commit
These variables are available in all modes (workspace, direct, readonly)
and are useful for logging, sorting results, and correlating output
when running commands in parallel.1 parent ecc9e03 commit b192ae8
2 files changed
Lines changed: 52 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
120 | 144 | | |
121 | 145 | | |
122 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
303 | 311 | | |
304 | 312 | | |
305 | 313 | | |
306 | | - | |
| 314 | + | |
307 | 315 | | |
308 | 316 | | |
309 | 317 | | |
| |||
394 | 402 | | |
395 | 403 | | |
396 | 404 | | |
397 | | - | |
| 405 | + | |
398 | 406 | | |
399 | 407 | | |
400 | 408 | | |
| |||
607 | 615 | | |
608 | 616 | | |
609 | 617 | | |
610 | | - | |
| 618 | + | |
611 | 619 | | |
612 | 620 | | |
613 | 621 | | |
| |||
693 | 701 | | |
694 | 702 | | |
695 | 703 | | |
696 | | - | |
| 704 | + | |
697 | 705 | | |
698 | 706 | | |
699 | 707 | | |
| |||
855 | 863 | | |
856 | 864 | | |
857 | 865 | | |
858 | | - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
859 | 869 | | |
860 | 870 | | |
861 | 871 | | |
862 | 872 | | |
863 | 873 | | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
864 | 883 | | |
865 | 884 | | |
866 | 885 | | |
| |||
0 commit comments