Skip to content

Add worktree_clone fish function#14

Merged
ojongerius merged 1 commit intomainfrom
add/worktree-clone-function
Feb 18, 2026
Merged

Add worktree_clone fish function#14
ojongerius merged 1 commit intomainfrom
add/worktree-clone-function

Conversation

@ojongerius
Copy link
Owner

@ojongerius ojongerius commented Feb 18, 2026

Summary

  • Adds worktree_clone fish function that automates bare-repo + worktree setup (clone bare, create .git pointer, detect default branch, create worktree)
  • Updates install.sh to symlink fish/functions/ directory
  • Updates do_fish bats test to verify the functions symlink

Test plan

  • All 13 bats tests pass
  • Run worktree_clone <repo-url> and verify the directory structure is created correctly

Adds a fish function that automates the bare-repo + worktree setup:
- Clone a repo as bare into .bare/
- Create .git pointer file
- Detect default branch and create a worktree for it

Also symlinks fish/functions/ directory in install.sh and
updates the do_fish bats test to verify the new symlink.
@ojongerius ojongerius merged commit 9a1d772 into main Feb 18, 2026
2 checks passed
@ojongerius ojongerius deleted the add/worktree-clone-function branch February 18, 2026 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant