Repository navigation
Add swarmforge tmux open - #107
Merged
Merged
Conversation
The tmux tests build real repositories too, so the neutered git environment and the scratch-dir base class move out of test_worktrees.py into tests/git_fixtures.py.
The tmux command needs git's stdout/stderr contract, so it moves into swarmforge.command for both to use. Its new `quiet` keeps git's fatal line out of the default-branch probes, whose callers already replace a failure with their own message.
Replaces a personal helper script. The worktree discovery lives in swarmforge.worktrees so `swarmforge spawn` can reuse it. `open` is a verb under `tmux` so recorded repos picked by --org/--all can join it later without a new verb.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
swarmforge tmux open [PATH] [--name NAME] [--detach]opens a repo as one tmux session: aRepowindow at the root, then the default branch's worktree, then the rest..git, or any worktree of a repo open the same session.opensits undertmuxso recorded repos can join it later as--org/--all. Worktree discovery lives inswarmforge.worktreessoswarmforge spawncan reuse it.Not covered by the tests: they fake tmux, so attaching (
switch-clientinside tmux,attach-sessionoutside) still needs a manual run against a real tmux server.Deferred:
swarmforge spawn, which needs that mapping anyway.--all; that PR decides.