onyx
4ac03662d6
CI / Check for .beads changes (push) Has been skipped
CI / Test (push) Has been cancelled
CI / Coverage Report (push) Has been cancelled
CI / Check embedded formulas (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Integration Tests (push) Has been cancelled
Windows CI / Windows Build and Unit Tests (push) Has been cancelled
perf(git): cache git rev-parse results within sessions
...
Multiple gt commands call git rev-parse --show-toplevel, adding ~50ms
each invocation. Results rarely change within a session, and multiple
agents calling git concurrently contend on .git/index.lock.
Add cached RepoRoot() and RepoRootFrom() functions to the git package
and update all callers to use them. This ensures a single git subprocess
call per process for the common case of checking the current directory's
repo root.
Files updated:
- internal/git/git.go: Add RepoRoot() and RepoRootFrom()
- internal/cmd/prime.go: Use cached git.RepoRoot()
- internal/cmd/molecule_status.go: Use cached git.RepoRoot()
- internal/cmd/sling_helpers.go: Use cached git.RepoRoot()
- internal/cmd/rig_quick_add.go: Use git.RepoRootFrom() for path arg
- internal/version/stale.go: Use cached git.RepoRoot()
Closes: bd-2zd.5
2026-01-25 11:17:45 -08:00
..
2026-01-20 14:17:35 -08:00
2026-01-25 11:15:29 -08:00
2026-01-21 22:40:10 -08:00
2026-01-11 23:03:47 -08:00
2026-01-12 01:45:26 -08:00
2026-01-25 11:15:29 -08:00
2026-01-13 13:14:47 -08:00
2026-01-20 20:45:58 -08:00
2026-01-17 03:19:08 -08:00
2026-01-15 17:44:40 -08:00
2026-01-22 21:43:23 -08:00
2026-01-21 18:04:58 -08:00
2026-01-13 19:34:29 -08:00
2026-01-13 19:34:29 -08:00
2026-01-13 19:34:29 -08:00
2026-01-25 11:15:29 -08:00
2026-01-20 20:46:43 -08:00
2026-01-24 21:29:57 -08:00
2026-01-20 12:58:01 -08:00
2026-01-25 11:15:29 -08:00
2026-01-16 15:27:59 -08:00
2026-01-17 03:49:18 -08:00
2026-01-20 20:45:58 -08:00
2026-01-12 23:07:49 -08:00
2026-01-25 11:17:16 -08:00
2026-01-17 02:55:39 -08:00
2026-01-20 20:45:58 -08:00
2026-01-20 20:20:49 -08:00
2026-01-25 11:15:29 -08:00
2026-01-20 19:51:37 -08:00
2026-01-25 11:15:29 -08:00
2026-01-10 22:56:33 -08:00
2026-01-20 23:20:50 +01:00
2026-01-16 11:05:59 -08:00
2026-01-16 11:05:59 -08:00
2026-01-12 02:45:03 -08:00
2026-01-12 02:31:06 -08:00
2026-01-25 11:15:29 -08:00
2026-01-16 12:33:51 -08:00
2026-01-21 22:48:06 +07:00
2026-01-25 11:17:16 -08:00
2026-01-21 18:05:00 -08:00
2026-01-25 11:16:23 -08:00
2026-01-09 22:46:06 -08:00
2026-01-25 11:17:16 -08:00
2026-01-22 16:43:21 -08:00
2026-01-21 17:40:05 -08:00
2026-01-22 21:39:31 -08:00
2026-01-22 21:39:31 -08:00
2026-01-21 23:05:00 -08:00
2026-01-20 14:17:35 -08:00
2026-01-21 22:48:06 +07:00
2026-01-09 23:01:55 -08:00
2026-01-24 21:47:59 -08:00
2026-01-17 09:49:53 -08:00
2026-01-09 23:01:55 -08:00
2026-01-14 21:18:20 -08:00
2026-01-14 21:18:20 -08:00
2026-01-21 21:53:18 -08:00
2026-01-25 11:15:29 -08:00
2026-01-24 21:47:59 -08:00
2026-01-14 21:29:37 -08:00
2026-01-09 23:01:55 -08:00
2026-01-14 21:19:54 -08:00
2026-01-14 21:25:11 -08:00
2026-01-21 21:19:04 -08:00
2026-01-24 21:47:59 -08:00
2026-01-24 22:17:42 -08:00
2026-01-20 14:10:26 -08:00
2026-01-22 16:43:21 -08:00
2026-01-17 02:11:12 -08:00
2026-01-25 11:17:45 -08:00
2026-01-24 21:46:27 -08:00
2026-01-25 11:15:29 -08:00
2026-01-20 19:31:26 -08:00
2026-01-16 15:23:28 -08:00
2026-01-16 15:27:38 -08:00
2026-01-20 19:31:26 -08:00
2026-01-24 21:48:12 -08:00
2026-01-17 02:55:39 -08:00
2026-01-21 18:04:00 -08:00
2026-01-20 19:31:17 -08:00
2026-01-17 03:47:18 -08:00
2026-01-17 03:41:18 -08:00
2026-01-25 11:15:29 -08:00
2026-01-16 12:33:51 -08:00
2026-01-21 18:04:55 -08:00
2026-01-13 13:37:00 -08:00
2026-01-22 21:43:23 -08:00
2026-01-25 11:15:29 -08:00
2026-01-25 11:15:29 -08:00
2026-01-10 18:28:14 -08:00
2026-01-10 18:28:14 -08:00
2026-01-17 09:46:25 -08:00
2026-01-25 11:17:45 -08:00
2026-01-13 20:59:15 -08:00
2026-01-13 20:59:15 -08:00
2026-01-16 15:38:08 -08:00
2026-01-25 11:15:29 -08:00
2026-01-13 13:14:47 -08:00
2026-01-20 20:00:56 -08:00
2026-01-16 15:27:38 -08:00
2026-01-21 19:50:38 -08:00
2026-01-22 21:27:38 -08:00
2026-01-16 15:23:35 -08:00
2026-01-12 17:44:37 -08:00
2026-01-21 10:31:16 -08:00
2026-01-25 11:17:45 -08:00
2026-01-24 21:46:05 -08:00
2026-01-20 12:57:46 -08:00
2026-01-24 22:23:52 -08:00
2026-01-12 01:45:26 -08:00
2026-01-22 16:43:21 -08:00
2026-01-21 19:30:49 -08:00
2026-01-15 19:19:13 -08:00
2026-01-22 16:43:21 -08:00
2026-01-25 11:15:29 -08:00
2026-01-25 11:15:29 -08:00
2026-01-12 03:11:59 -08:00
2026-01-20 14:17:35 -08:00
2026-01-25 11:17:45 -08:00
2026-01-12 03:11:59 -08:00
2026-01-20 14:17:35 -08:00
2026-01-25 11:15:29 -08:00
2026-01-12 03:10:58 -08:00
2026-01-20 22:34:37 -08:00
2026-01-20 22:34:37 -08:00
2026-01-22 21:42:27 -08:00
2026-01-25 11:15:29 -08:00
2026-01-25 11:15:29 -08:00
2026-01-13 13:37:00 -08:00
2026-01-20 14:17:35 -08:00
2026-01-19 11:21:54 -08:00
2026-01-19 11:21:54 -08:00
2026-01-20 14:17:35 -08:00
2026-01-09 22:46:06 -08:00
2026-01-24 22:15:48 -08:00
2026-01-13 19:34:29 -08:00
2026-01-11 22:23:21 -08:00
2026-01-13 13:46:50 -08:00
2026-01-17 00:50:46 -08:00
2026-01-24 22:23:07 -08:00
2026-01-20 20:45:58 -08:00