import hashlib


def branch_hash_worktree_path_builder(branch):
    """Returns a relative path for a worktree based on the hash of the branch
    name.
    """
    return hashlib.md5(branch.encode("utf-8")).hexdigest()