MCPcopy Create free account
hub / github.com/BillHuang2001/evogit / update_branches

Function update_branches

python-impl/evogit/api.py:46–54  ·  view source on GitHub ↗

The branches are used to track the current state of the population

(config: EvoGitConfig, pop: list[str])

Source from the content-addressed store, hash-verified

44
45
46def 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
57def get_initial_branches(config: EvoGitConfig, pop_size: int) -> list[str]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected