Commit 693054d
authored
feat: automatically set upstream tracking when creating worktrees from existing branches (#3)
* feat: add upstream tracking setup for new worktrees
* fix: update installation instructions to use 'bash' instead of 'sh'
* Add comprehensive test coverage for upstream tracking feature
- Add 9 unit tests for checkAndSetUpstream method and createWorktree integration
- Add 9 integration tests covering all upstream tracking scenarios
- Tests verify automatic upstream setup for local branches without tracking
- Tests ensure no interference with remote/new branch worktree creation
- Tests cover error handling, multiple remotes, and configuration integration
- All tests passing: unit tests (212/212) and integration tests (9/9)
* Fixing lint error1 parent 96575b8 commit 693054d
4 files changed
Lines changed: 795 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
159 | 197 | | |
160 | 198 | | |
161 | 199 | | |
| |||
208 | 246 | | |
209 | 247 | | |
210 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
211 | 252 | | |
212 | 253 | | |
213 | 254 | | |
| |||
0 commit comments