The branches are used to track the current state of the population
(config: EvoGitConfig, pop: list[str])
| 44 | |
| 45 | |
| 46 | def update_branches(config: EvoGitConfig, pop: list[str]) -> None: |
| 47 | """The branches are used to track the current state of the population""" |
| 48 | branch_names = [] |
| 49 | hostname = config.hostname if config.hostname is not None else "host0" |
| 50 | |
| 51 | for index, _commit in enumerate(pop): |
| 52 | branch_names.append(f"{hostname}-individual-{index}") |
| 53 | |
| 54 | git.branches_track_commits(config, branch_names, pop) |
| 55 | |
| 56 | |
| 57 | def get_initial_branches(config: EvoGitConfig, pop_size: int) -> list[str]: |
nothing calls this directly
no outgoing calls
no test coverage detected