| 3312 | } |
| 3313 | |
| 3314 | static int has_worktrees(void) |
| 3315 | { |
| 3316 | struct worktree **worktrees = get_worktrees(); |
| 3317 | int ret = 0; |
| 3318 | size_t i; |
| 3319 | |
| 3320 | for (i = 0; worktrees[i]; i++) { |
| 3321 | if (is_main_worktree(worktrees[i])) |
| 3322 | continue; |
| 3323 | ret = 1; |
| 3324 | } |
| 3325 | |
| 3326 | free_worktrees(worktrees); |
| 3327 | return ret; |
| 3328 | } |
| 3329 | |
| 3330 | int repo_migrate_ref_storage_format(struct repository *repo, |
| 3331 | enum ref_storage_format format, |
no test coverage detected