Skip to content

Support nested branch names (e.g., feature/foo)#4

Open
sestinj wants to merge 2 commits intodadlerj:mainfrom
sestinj:fix/nested-branch-names
Open

Support nested branch names (e.g., feature/foo)#4
sestinj wants to merge 2 commits intodadlerj:mainfrom
sestinj:fix/nested-branch-names

Conversation

@sestinj
Copy link
Copy Markdown

@sestinj sestinj commented Jan 12, 2026

Fixes branch operations for names containing slashes like feature/foo or nate/my-branch.

Changes:

  • WriteBranch: Create parent directories before writing ref file
  • ListBranches: Use filepath.WalkDir to find branches in subdirectories

Tests updated to use feature/test branch name.


This PR will not dilute the 100% vibe-codedness of tin. If there are any guidelines you have in mind (e.g. maybe I should commit with tin) let me know!

sestinj and others added 2 commits January 11, 2026 21:36
Create parent directories before writing branch refs so that branches
with slashes in the name (e.g., feature/foo, nate/tin-stuff) work correctly.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- ListBranches now uses filepath.WalkDir to find branches in subdirectories
- Updated tests to use "feature/test" branch name to verify nested support

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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