(client *git.Client, b string)
| 324 | } |
| 325 | |
| 326 | func localBranchExists(client *git.Client, b string) bool { |
| 327 | _, err := client.ShowRefs(context.Background(), []string{"refs/heads/" + b}) |
| 328 | return err == nil |
| 329 | } |
| 330 | |
| 331 | // resolveWorktreeTarget asks git where path lives, letting git resolve symlinks, |
| 332 | // "..", case, and trailing slashes for us instead of comparing paths ourselves. |
no test coverage detected