This repository was archived by the owner on Nov 3, 2026. It is now read-only.
Repository navigation
feat: name worktree exec repos by their path from the worktree - #30
Merged
Merged
Conversation
meta git worktree exec passed no root to loop_lib, so it named the root repo by its folder (t1) and children by basename, unlike meta git status in the same worktree. Pass the worktree dir as the root: '. (t1)', ./agent. Both callers passed the same git env, so build_loop_config sets it itself. Implements [[tasks/harmony-2712]]
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
meta git worktree execpassed noroot_dirto loop_lib, so it named the worktree's root repo by its folder (t1) and children by basename, whilemeta git statusin the same worktree shows. (t1). It now passes the worktree dir as the root, so the naming matches every other command that prints per-repo lines through loop_lib.With gitkb/loop_lib#13 (names repos by their path from the root) children show as
./agent,./vendor/foo; on loop_lib main they keep their basename and only the root line changes to. (t1). No ordering needed between the two PRs.Both callers of
build_loop_configpassed the sameSome(git_env::git_env()), so it now sets that itself (keeps it under clippy's 7-argument limit). JSON fields are unchanged (directoryis the full path). With a root set, loop_lib's parallel mode puts the root first in theresultsarray, as it already does outside a worktree (before: the root sorted among the children by folder name). No consumer depends on that order (meta_mcp finds results by field).Before / after
Scratch meta workspace, worktree
t1with.,agent,alpha:meta git worktree exec t1 -- git status -sBefore:
After (with loop_lib#13):
Verification
cargo test -p meta_git_cli, clippy-D warnings, fmt.meta+meta-gitfrom this branch and ran the command above.Part of tasks/harmony-2712, with gitkb/loop_lib#13, gitkb/meta_project_cli#17 and gitkb/meta_cli#37 (
meta execin a worktree).Implements [[tasks/harmony-2712]]